@@ -161,18 +161,6 @@ behavior predictable.
161161
162162## Known limitations so far
163163
164- - consistent argument naming e.g. theme_vars vs readOnly…\> snake_case
165-
166- - work over vignettes (including editing, consistency, cross-linking,
167- examples)
168-
169- - does the high level structure for vignettes make sense?
170-
171- - what are multi-locale surveys?
172-
173- - switch language on runtime (e.g. via dropown; supproted by surveyjs)
174- (could add a message handler like “surveyjs-locale” - not yet done)
175-
176164- Live results tracking example doesnt work yet \> work with
177165 onValueChanged \> Shiny.setInputValue(…)
178166
@@ -181,26 +169,33 @@ behavior predictable.
181169
182170- Dynamic Update example does not work or is not meaningful
183171
184- - tests/unit tests for all examples are needed
185-
186172- error handling
187173
188- - Embedding in other widgets or layouts
174+ - Provide file upload example - e.g. what to do then with that file?
189175
190- - Extending with custom question types
176+ - provide a shiny database example including testing with db-connection
191177
192178- Custom widgets / question renderers (needs js-level support,
193179 potentially surveyjs plugin, not sure if possible)
194180
195- - Provide file upload example - e.g. what to do then with that file?
181+ - Extending with custom question types
196182
197- - provide a shiny database example including testing with db-connection
183+ - Embedding in other widgets or layouts
198184
199- - In surveyjs.js den Comment noch auflösen. You can add resizing suppert
200- here if needed later
185+ - tests/unit tests for all examples are needed
186+
187+ - switch language on runtime (e.g. via dropown; supproted by surveyjs)
188+ (could add a message handler like “surveyjs-locale” - not yet done)
189+
190+ - what are multi-locale surveys?
191+
192+ - does the high level structure for vignettes make sense?
201193
202194- PDF/Excel/CSV/JSON Export
203195
196+ - work over vignettes (including editing, consistency, cross-linking,
197+ examples)
198+
204199- DSLs e.g. surveyjs_text, surveyjs_number, .. to user friendly,
205200 standardizing, encourage best practices
206201
@@ -294,32 +289,43 @@ Shiny.addCustomMessageHandler(“surveyjs-clear”, function(message) {
294289const el = document.getElementById(message.el); if (el &&
295290el.surveyModel) { el.surveyModel.clear(); } });
296291
297- In R:
292+ <!-- In R: -->
298293
299- session\ $ sendCustomMessage(“ surveyjs-clear” , list(el = “ survey_id”))
294+ <!-- session$sendCustomMessage(" surveyjs-clear" , list(el = " survey_id")) -->
300295
301- ✅ Events to Add for Shiny Interop Event Purpose When to Use onComplete
302- Send results to Shiny when survey is done Capture responses in server
303- onValueChanged Live-update an input binding Track form progress
304- reactively Example: Live updates
296+ <!-- ✅ Events to Add for Shiny Interop -->
305297
306- survey.onValueChanged.add(function(sender, options) {
307- Shiny.setInputValue(el.id + “\_ data_live”, sender.data, { priority:
308- “event” }); });
298+ <!-- Event Purpose When to Use -->
309299
310- And final submission:
300+ <!-- onComplete Send results to Shiny when survey is done Capture responses in server -->
311301
312- survey.onComplete.add(function(sender) { Shiny.setInputValue(el.id +
313- “\_ data”, sender.data); });
302+ <!-- onValueChanged Live-update an input binding Track form progress reactively -->
303+
304+ <!-- Example: Live updates -->
305+
306+ <!-- survey.onValueChanged.add(function(sender, options) { -->
307+
308+ <!-- Shiny.setInputValue(el.id + "_data_live", sender.data, { priority: "event" }); -->
309+
310+ <!-- }); -->
311+
312+ <!-- And final submission: -->
313+
314+ <!-- survey.onComplete.add(function(sender) { -->
315+
316+ <!-- Shiny.setInputValue(el.id + "_data", sender.data); -->
317+
318+ <!-- }); -->
319+
320+ <!-- Then in R: -->
314321
315- Then in R:
322+ <!-- input$survey_id_data # final completed data -->
316323
317- input$survey_id_data # final completed data
318- input$survey_id_data_live \# updated continuously
324+ <!-- input$survey_id_data_live # updated continuously -->
319325
320- onComplete, onValueChanged
326+ <!-- onComplete, onValueChanged -->
321327
322- Maybe nextPage()/prevPage() for custom buttons
328+ <!-- Maybe nextPage()/prevPage() for custom buttons -->
323329
324330------------------------------------------------------------------------
325331
0 commit comments