Docs
API
  • leftTpl

    String

    Template for left input element.

    This property is presented for only combo field.

    Example

    
    ...
    tbar: [{
      width: 300,
      displayKey: 'country',
      valueKey: 'country',
      itemCheckBox: true,
      value: 'UK',
      emptyText: 'Select Language',
      leftTpl: '<span class="flag {cls}"></span><span class="phone-code">{code}</span>',
      leftWidth: 55,
      listItemTpl: '<span class="flag {cls}"></span> <span class="phone-code">{code}</span> <span class="country">{country}</span>',
      data: [{
        index: 'uk',
    	country: 'UK',
    	code: '+44',
    	cls: 'flag-uk'
      },{
    	index: 'in',
    	country: 'India',
    	code: '+91',
    	cls: 'flag-in'
      },{
    	index: 'usa',
    	country: 'USA',
    	code: '+1',
    	cls: 'flag-usa'
      },{
    	index: 'ja',
    	country: 'Japan',
    	code: '+81',
    	cls: 'flag-ja'
      }];
    },{
    ...
    
    

    Default

    
    undefined