formgen-react
Version:
Formula generator with JSON for react. UI Fabric controls are used for rendering
65 lines (61 loc) • 1.37 kB
JSON
{
"id": "testform",
"title": "Test",
"rows": [{
"columns": [{
"controls": [{
"id": "control1",
"control_type": ["MaskedTextbox"],
"validators": [{
"validator_type":[ "Required" ]
},
{
"validator_type":[ "MaxLength" ],
"value": 8,
"message": "max 8"
}],
"label_position": [
"Top"
],
"title": "MaskedText DE",
"info": "Info DE",
"info_trans": {
"en": "Info EN"
},
"value": "12:30:30",
"config": {
"ref": "test",
"id": "test",
"name": "test",
"label": "test",
"onChange": "test",
"placeholder": "ss:mm:ss",
"mask": "11:11:11",
"errorMessage": "test",
"onBeforeChange": "test",
"onBlur": "test"
},
"config_trans": {
"properties": [{
"key": "placeholder",
"object_trans": {
"en": "hh:mm:ss"
}
},{
"key": "any.test",
"object_trans": {
"en": "hh:mm:ss"
}
}]
},
"title_trans": {
"en": "MaskedText EN"
}
},
{
"id": "submit",
"control_type": ["SubmitButton"]
}]
}]
}]
}