Documentation

Integer Validator - #is_integer {}

Validate that the field contains an integer.

Usage

   wf:wire(ButtonID, TextBoxID, #validate { validators=[
     #is_integer {
       min=1,
       max=100,
       text="Must be an integer between 1 and 100."
     }
   ]})

Attributes

  • text (string) - The text to display if validation fails.

  • min (integer) - If set, will be the minimum acceptable value for the field. If left blank, then no maximum will be enforced.

  • max (integer) - If set, will be the maximum acceptable value for the field. If left blank, then nno maximum will be enforced.

See Also



View Source or Submit Corrections for this Documentation Page
Copyright © 2008-2024 Nitrogen Web Framework. Released under the MIT License.