Select
Entity
Property
Required Metadata
Optional Metadata
Comment
We can use select inputType to get string, number or array of string or number dataType.
Example 1: Simple select input control which will load options from optionValue sub-property(metadata)
"department": {
"dataType": "string",
"inputeType": "select",
"optionValues": ["Account", "Human Resource", "Marketing", "Sales"],
"multiple": true // It will allow to select multiple options. Internally it will stored as array.
}Example 2: Load option data from with different description and value. Only value will be send to api, but when display it in grid list it will show description. Also if you add sub-property multiple and set value to true then it will be send array of specific dataType.
"department": {
"dataType": "string", // "string" or "number"
"inputeType": "select",
"options": [
{ "desc": "Account", "val": "acc" }, // val must be match with dataType
{ "desc": "Human Resource", "val": "hr"},
{ "desc": "Marketing", "val": "mkt"},
{ "desc": "Sales", "val": "sale" }
],
"multiple": true // only if require array of string or number
}Example 3: Load external api data into options
"department": {
"dataType": "string", // "string" or "number"
"inputeType": "select",
"source": "http://workingapi.com/department",
"descField": "name",
"valField": "code", // should be match with dataType
"parentObject": "allDept" // only if descField and valField data does not available at
} // root level, provide name of parent object which is at root level.