number_field

Number fields are used to input numeric only data. They are similar to text_field with some javascript added.

 

  fields:
    10:
      name: value
      type: number_field
      size: 10
      format: N2
      html:
        option: value

 

- name defines name of the field as defined in model.

- size defines size of the field. It's a shortcut for the same value defined in html options.

- format defines number format and is same as format defined in result_set. In this case this is field with 2 decimal numbers.

- html defines any HTML and HTML5 options that can be applied to input field. More about html options can be found here.

 


Last update: 07.02.2021