# vim: sw=3 ts=3 ft=org

#+TITLE: Checkbox Element Element
#+STYLE: <LINK href='../stylesheet.css' rel='stylesheet' type='text/css' />
#+AUTHOR: Rusty Klophaus (@rustyio)
#+OPTIONS:   H:2 num:1 toc:1 \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+EMAIL: 
#+TEXT: [[file:../index.org][Getting Started]] | [[file:../api.org][API]] | [[file:../elements.org][*Elements*]] | [[file:../actions.org][Actions]] | [[file:../validators.org][Validators]] | [[file:../handlers.org][Handlers]] | [[file:../config.org][Configuration Options]] | [[file:../about.org][About]]

* Checkbox Element - #checkbox {}

  The checkbox element produces an HTML checkbox.

** Usage

#+BEGIN_SRC erlang
   #checkbox { id=checkbox1, text="Check Me", checked=true }
#+END_SRC

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

** See Also

   + [[./base.html][base]]

   + [[./button.html][Button]]

   + [[./link.html][Link]]

   + [[./textbox.html][Textbox]]

   + [[./password.html][Password]]

   + [[./textarea.html][Textarea]]

   + [[./dropdown.html][Dropdown]]

   + [[./option.html][Dropdown Option]]

