Docs
API
  • subTBar

    Array

    There are 4 bars in FancyForm.
    They are: tbar, subTBar, bbar, buttons.
    Syntax is almost the same for all bars.
    The main purpose of buttons is alternative for bbar.
    When paging is enabled, bbar is busy.
    subTBar is used as extra bar for grid's top when
    tbar is not enough.

    Example

    
    subTBar: [{
      type: 'button',
      text: 'Text 1',
      handler: function(){
        
      }
    },{
      type: 'button',
      text: 'Text 2',
      handler: function(){
        
      }
    }],
    

    Example: subTBar

    
    subTBar: [{
      type: 'button',
      text: 'Add',
      action: 'add'
    },{
      type: 'button',
      text: 'Delete',
      action: 'remove'
    }],
    subTBar: [{
      type: 'button',
      text: 'Extra 1'
    },{
      type: 'button',
      text: 'Extra 2'
    }]
    

    Example: separator

    To set separator between items use shortcut |

    
    subTBar: [{
      text: 'Text 1'
    },'|',{
      type: 'button'
    }],
    

    Example: side

    If to set 'side' element than all elements after it will be floated to right side.

    
    subTBar: ['side', {
      text: 'Clear'
    },'|',{
      type: 'Submit'
    }],
    

    Default

    
    undefined