Maintained reference:
customdropdownis the up-to-date version of this topic. This page keeps older notes and examples.
Complete JSON Object
{
"key": "InputKey",
"type": "customdropdown",
"props": {
"label": "Input Name",
"required": true,
"placeholder": "Input Placeholder",
"bindLabel":"description",
"bindValue":"",
"multiple":false,
"options":[],
"useBaseUrl":true,
"dataset":{
"url":"https://example/categories"
"dataField":"data.content",
}
},
"validation": {
"messages": {
"required": "Error message for required"
}
}
}
Note: Setting the bindValue to empty string will return object of selected item which is preferred for dynamic Drop down field.
Allowed Custom Properties
See the props table in the maintained customdropdown reference.
Allowed Validations
validator-(n)