Reaction::UI::Widget::Field::Mutable::Boolean(3)

NAME
Reaction::UI::Widget::Field::Mutable::Boolean - A mutable boolean field

DESCRIPTION
Provides a widget to manipulate a boolean value. This is a subclass of Reaction::UI::Widget::Field::Mutable.

FRAGMENTS

  widget
Will set the argument "field_type" to "checkbox".

  is_checked
Will render the "is_checked_yes" fragment if the viewport has a true "value_string" or "is_checked_no" if it does not.

LAYOUT SETS

  base
  share/skin/base/layout/field/mutable/boolean.tt

This layout set extends the next "field/mutable" layout set in the skin inheritance.

The following layouts are provided:

widget
    Renders the input element that will be the checkbox.

field_body
    Sets the value element attribute to 1 and renders the "is_checked" fragment afterwards.

is_checked_yes
    Sets the "checked" attribute of the input element to "checked".

is_checked_no
    Empty.

AUTHORS
See Reaction::Class for authors.

LICENSE
See Reaction::Class for the license.