Files
firecms/website/docs/properties/number.md
2021-07-29 17:39:47 +02:00

960 B

id, title, sidebar_label
id title sidebar_label
number Number Number

config

  • enumValues You can use the enum values providing a map of possible exclusive values the property can take, mapped to the label that it is displayed in the dropdown.

validation

  • required Should this field be compulsory.
  • requiredMessage Message to be displayed as a validation error.
  • min Set the minimum value allowed.
  • max Set the maximum value allowed.
  • lessThan Value must be less than.
  • moreThan Value must be more than.
  • positive Value must be a positive number.
  • negative Value must be a negative number.
  • integer Value must be an integer.

The widget that gets created is

  • TextField generic text field
  • Select if enumValues are set in the string config, this field renders a select where each option is a colored chip.

Links: