Update doc

This commit is contained in:
HoshinoKoji 2025-03-07 16:15:15 +08:00
parent d4300cc140
commit 6ea2608860

View File

@ -11,7 +11,7 @@ The following parts of the documentation are generated by `Claude-3.7-Sonnet`.
## Data Transport ## Data Transport
The questionnaire component receives input via the `window.postMessage` API. The parent window should post a message with the following structure: The questionnaire component receives input via the `window.postMessage` API (see [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage) for details). The parent window should post a message with the following structure:
```javascript ```javascript
window.postMessage({ window.postMessage({
@ -73,6 +73,7 @@ Each item in the `items` array represents a question with the following structur
allowAutoNext: true, // Auto-advance after selection for radio/scale allowAutoNext: true, // Auto-advance after selection for radio/scale
darkMode: false, // Visual theme darkMode: false, // Visual theme
showItemIndex: true, // Show item index in the header showItemIndex: true, // Show item index in the header
origin: '*', // Specify the origin to post messages
lang: 'en-US' // Language code lang: 'en-US' // Language code
} }
``` ```