-
Notifications
You must be signed in to change notification settings - Fork 24
Description
@elliottisonfire
JSON,
{
"component": "ActionForm",
"title": "Action Comment",
"columnUnit": 12,
"styles": "",
"children": [
{
"component": "Dropdown",
"label": "Reason",
"name": "Reason",
"dropdown_content": ["Unable to verify identity/Entity (L2)", "Unable to verify identity/Entity (L3)"],
"styles": ""
},
{
"component": "CheckboxField",
"styles": {
"margin": "10px"
},
"checkboxes": [
{
"label": "checkbox_item1_checked_default",
"key": 0
},
{
"label": "Possible Name Match",
"key": 1
},
{
"label": "Possible Business Name Match",
"key": 2
},
{
"label": "Physical Address Matches",
"key": 3
}
]
}
]
}
......
const componentMap = {
ActionForm,
Dropdown,
CheckboxField
}
const form = new ReactJsonSchema();
form.setComponentMap(componentMap);
const ActionFormComponent = () => form.parseSchema(actionFormSchema);
....
<Route path="action/:actionId" component={ActionFormComponent} />