Releases: akvo/akvo-react-form-editor
Releases · akvo/akvo-react-form-editor
Semarapura v1.1.1
Setting Hint URL
Setting Hint URL should be defined as array of object. This value was used to fill Select Option value for hint setting in a question.
Example:
<WebformEditor
settingHintURL={{
questionTypes: ['number'],
settings: [
{
id: 1,
name: 'JMP Explorer API',
endpoint: 'https://jmp-explorer.akvotest.org/api/hint',
path: [
{
label: 'Maximum',
value: 'max',
},
{
label: 'Minimum',
value: 'min',
},
{
label: 'Average',
value: 'mean',
},
{
label: 'Quantile 1',
value: 'q1',
},
{
label: 'Quantile 2',
value: 'q2',
},
{
label: 'Quantile 3',
value: 'q3',
},
],
},
],
}}
/>
Setting Hint URL Object
Props |
Description |
Type |
questionTypes |
Value to limit hint setting for a certain question |
Array[QuestionType] | undefined |
settings |
Value for hint options |
Array[Settings Parameters] |
Settings Parameters
Props |
Description |
Type |
id |
Unique id as option value |
Integer |
name |
Shown as option label |
String |
endpoint |
Hint API |
String |
path |
Hint of object path provided by API which containt the value will be shown as a hint/validation |
Array[Path Parameters] |
Path Parameters
Props |
Description |
Type |
label |
Label for the path options |
String |
value |
Value for the path options |
String |
Gianyar v1.1.0
- Support set question meta to be used as data point name
v1.0.8 Denpasar
Support Table type of question
Denpasar v1.0.7
Custom Params
Custom parameters are key-value pairs that we can implement in the Webform Editor.
<WebformEditor
customParams={{
label: 'Set Custom Parameter',
params: [
{
name: 'params_name_a',
label: 'Single Option Param',
type: 'option',
multiple: false,
options: [
{ label: 'Option 1', value: 'SO1' },
{ label: 'Option 2', value: 'SO2' },
],
},
{
name: 'params_name_b',
label: 'Multiple Option Param',
type: 'option',
multiple: true,
options: [
{ label: 'Multiple Option 1', value: 'MO1' },
{ label: 'Multiple Option 2', value: 'MO2' },
],
},
{
name: 'params_name_c',
label: 'Input Param',
type: 'input',
},
],
}}
/>
Custom Parameters Setting
Props |
Description |
Type |
label |
Label for the custom params tab |
String | undefined |
params |
List of custom parameters |
Array[Custom Parameters] |
Custom Parameters
Props |
Description |
Type |
name |
Parameter name |
String |
label |
Parameter label |
String | undefined |
type |
Field Type |
`option |
multiple |
Whether multiple or not |
Boolean |
options |
Parameter Options |
Array[Option Parameters] | undefined |
Option Parameters
Props |
Description |
Type |
label |
Label for the params options |
String | undefined |
value |
Value for the params options |
String |
Semarapura v1.0.6
- Fix load after/before date initial value
Semarapura v1.0.5
- Clear rule value when deselect after/before date
Semarapura v1.0.4
- Fix cascade & form description bug
Gianyar v1.0.3
- Update akvo-react-form version