Docs
API
  • labelWidth

    Number

    FancyForm calculates label width for fields.
    To overwrite calculated value it needs to use labelWidth.

    Example

    
    ...
    items: [{
      type: 'string',
      label: 'Name',
      name: 'name',
      labelWidth: 70
    },{
    ...
    

    Example

    
    ...
    defaults: {
      type: 'string',
      labelWidth: 70
    },
    items: [{  
      label: 'Name',
      name: 'name'
    },{
      label: 'Sur Name',
      name: 'surname'
    },{
    ...
    

    Default

    If not set than calculated from number of fields' chars.