SchemaToCode
NGX-SCHEMA-TO-CODE
Version 1.1.1

You can set options metadata for the select, radio & checkbox array. Following are the different ways to define options.

Using simple string array

"optionValues": ["Account", "Human Resource", "Marketing", "Sales"]

Using description and value object array

"options": [
  { "description": "Account", "value": "acc" },  // value must be match with dataType
  { "description": "Human Resource", "value": "hr"},
  { "description": "Marketing", "value": "mkt"},
  { "description": "Sales", "value": "sale" }
],

Using source url

"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

Related Topics:

Checkbox Group,   Radio,   Select