Docs
API
  • line

    Line field type

    This field layouts items in one line.

    Example

    
    items: [{
      type: 'line',
      defaults: {
        labelAlign: 'top'
      },
      items: [{
        type: 'string',
        label: 'Name',
        emptyText: 'Name',
        name: 'name'
      },{
        type: 'string',
        label: 'SurName',
        emptyText: 'SurName',
        name: 'surname'
      }]
    }]
    ...
    

    Properties

    defaults

    Object

    Default params for items.

    
    items: [{
      type: 'line',
      defaults: {
        labelAlign: 'top'
      },
      items: [{
        type: 'string',
        label: 'Name',
        emptyText: 'Name',
        name: 'name'
      },{
        type: 'string',
        label: 'SurName',
        emptyText: 'SurName',
        name: 'surname'
      }]
    }]
    ...
    

    items

    Array

    Fields items.

    
    items: [{
      type: 'line',
      defaults: {
        labelAlign: 'top'
      },
      items: [{
        type: 'string',
        label: 'Name',
        emptyText: 'Name',
        name: 'name'
      },{
        type: 'string',
        label: 'SurName',
        emptyText: 'SurName',
        name: 'surname'
      }]
    }]
    

    type

    String

    Type of field (value - line).

    
    items: [{
      type: 'line',
      defaults: {
        labelAlign: 'top'
      },
      items: [{
        type: 'string',
        label: 'Name',
        emptyText: 'Name',
        name: 'name'
      },{
        type: 'string',
        label: 'SurName',
        emptyText: 'SurName',
        name: 'surname'
      }]
    }]