react-survey-builder 1.0.94 → 1.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/bundle.js +9 -9
- package/dist/src_survey-elements-edit_jsx.bundle.js +1 -1
- package/lib/form-fields.js +20 -5
- package/lib/form-steps.js +20 -5
- package/lib/form.js +20 -5
- package/lib/index.js +3 -0
- package/lib/sortable-form-elements.js +2 -0
- package/lib/survey-elements/custom-element.js +2 -2
- package/lib/survey-elements/header-bar.js +1 -1
- package/lib/survey-elements/index.js +165 -70
- package/lib/survey-elements-edit.js +17 -2
- package/lib/toolbar.js +24 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -0
package/README.md
CHANGED
@@ -86,6 +86,7 @@ formMethod | string | Required | Verb used in the form submission.
|
|
86
86
|
actionName | string | Optional | Defines form submit button text. Defaults to "Submit"
|
87
87
|
onSubmit | function | optional | Invoke when submit data, if exists will override form post.
|
88
88
|
onChange | function | optional | Invoke when Change data. only on generator
|
89
|
+
onSelect | function | optional | Invoke when ButtonList button is selected. only on generator
|
89
90
|
onBlur | function | optional | Invoke when Blur data. only on generator
|
90
91
|
items | array | Required | Question data retrieved from the database
|
91
92
|
backAction | string | Optional | URL path to go back if needed.
|
@@ -164,6 +165,7 @@ Then navigate to http://localhost:8080/ in your browser and you should be able t
|
|
164
165
|
items={form}
|
165
166
|
toolbarItems={toolbarItems}
|
166
167
|
onSubmit={handleSubmit}
|
168
|
+
onSelect={handleSelect}
|
167
169
|
actionName="Set this to change the default submit button text"
|
168
170
|
submitButton={<Button variant="primary" type="submit">Submit</Button>}
|
169
171
|
backButton={<Button variant="secondary" onClick={backAction}>Back</Button>}
|