Docs
API
  • data

    Array

    It is used only for combo field.
    Combo values.

    Example

    
    ...
    items: [{
      type: 'combo',
      label: 'Country',
      name: 'country',
      data: [
        {index: 0, country: 'USA'},
        {index: 1, country: 'Canada'}
      ],
      displayKey: 'country',
      valueKey: 'index',
      value: 0,
      events: [{
        change: function(field, value){
          
        }
      }]
    },{
    ...
    

    Example: Server data

    
    ...
    items: [{
      type: 'combo',
      label: 'Country',
      name: 'country',
      data: {
        proxy: {
          url: 'countries.json'
        }
      },
      displayKey: 'country',
      valueKey: 'index',
      value: 0,
      events: [{
        change: function(field, value){
          
        }
      }]
    },{
    ...
    
    countries.json
    {
      "data": [
        {"index": 0, "country": "Canada"},
        {"index": 1, "country": "Finland"},
        {"index": 2, "country": "France"},
        {"index": 3, "country": "Japan"},
        {"index": 4, "country": "UK"},
        {"index": 5, "country": "USA"}
      ]
    }
    

    Default

    
    undefined