Integer

A reusable validation component for integer input that prevents decimal numbers and can be restricted to unsigned values (minimum 0) or allow negative numbers

Examples

Basic usage

Properties

Name Type Required Description
@validationField string Yes The field name in the changeset for validation
@changeset ImmerChangeset Yes The changeset object for form validation
@label string No The label for the input field
@placeholder string No Placeholder text shown in the input field when empty
@disabled boolean No Whether the input field is disabled
@mandatory boolean No Whether the integer field is mandatory
@onChange function No The action to be called when the input value changes
@changeEvent string No The event to trigger the onChange action
@unsigned boolean No Whether to restrict the input to unsigned integers (minimum 0), preventing negative numbers