Integer Validator Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Plugins | Mobile | Troubleshooting | About

Table of Contents

1 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.

Date: 2013-11-17 22:02:16 CST

Author: Rusty Klophaus (@rustyio)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

Comments

Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>


comments powered by Disqus