Docs
API
  • displayKey

    String

    Index of data to display in combo input and list.
    It is used only for combo column type if data is array of objects.

    Example: Local Data

    
    {
      index: 'country',
      title: 'Country',
      type: 'combo',
      displayKey: 'country',
      data: [
        {country: "USA", id: 1},
        {country: "Canada", id: 2},
        {country: "England", id: 3}
      ]
    }
    
    

    Example: Server Data

    
    {
      index: 'country',
      title: 'Country',
      type: 'combo',
      displayKey: 'country',
      data: {
        proxy: {
          url: 'countries.php',
          method: 'POST'
        }
      }
    }
    ...
    countries.php
    {"data": [{"country": "USA", "id": 1},{"country": "Canada", id: 2},{"country": "England", id: 3}]}
    

    Returned data from server must be valid JSON, in other case it will not be rendered

    Default

    Only for column combo type.

    
    undefined