Checkbox Element Element
Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Plugins | Mobile | Troubleshooting | About
Table of Contents
1 Checkbox Element - #checkbox {}
The checkbox element produces an HTML checkbox.
Usage
#checkbox { id=checkbox1, text="Check Me", checked=true }
Attributes
- text - (string)
- The checkbox's label.
- html_encode - (boolean)
- Set to true to safely html-encode the text.
- postback - (Erlang term)
- If set, clicking on the checkbox will initiate a Nitrogen postback with the supplied term.
- checked - (boolean)
- True if the checkbox should be checked.
- value - (string)
- The value that will be posted if checked. The default HTML behavior is the string "on"
- html_name - (string)
- The name attribute of the checkbox.