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

NAME
Reaction::UI::Widget::Field - A simple labelled text field

DESCRIPTION
This widget renders a simple labelled text field.

FRAGMENTS

  widget
Sets the "field_value" argument either to the result of the "value_string" method on the viewport, or to an empty string if the viewport does not support the method.

  label_fragment
Will set the "label" argument to the localised value of the viewport's "label" method and render the "label" fragment if the viewport's "label" value is true.

LAYOUT SETS

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

The following layouts are provided:

widget
    Renders the "label_fragment" and "value_layout" fragments.

label
    Renders a "span" element with a "field_label" class attribute containing the "label" argument and a double colon.

value_layout
    Renders a "span" element with a "field_value" class attribute containing the "field_value" argument.

  default
  share/skin/default/layout/field.tt

This layout set inherits from the "NEXT" one in the skin inheritance.

The following layouts are provided:

label
    The same as in the "base" skin except that the "label" argument is surrounded by a "strong" element.

SUBCLASSES
For mutable fields see Reaction::UI::Widget::Field::Mutable.

Reaction::UI::Field::Text
    A simple text subclass of Reaction::UI::Field.

Reaction::UI::Field::String
    A simple string subclass of Reaction::UI::Field.

Reaction::UI::Field::RelatedObject
    A simple subclass of Reaction::UI::Field.

Reaction::UI::Field::Number
    A simple number subclass of Reaction::UI::Field.

Reaction::UI::Field::Integer
    A simple integer subclass of Reaction::UI::Field.

Reaction::UI::Field::Image
    A field representing an optional image.

Reaction::UI::Field::DateTime
    A simple DateTime subclass of Reaction::UI::Field.

Reaction::UI::Field::Container
    A container field for multiple values.

Reaction::UI::Field::Collection
    A field containing a collection of localised values.

Reaction::UI::Field::Boolean
    A simple boolean subclass of Reaction::UI::Field.

Reaction::UI::Field::Array
    A field representing an array of values, like Reaction::UI::Field::Collection.

AUTHORS
See Reaction::Class for authors.

LICENSE
See Reaction::Class for the license.

POD ERRORS
Hey! The above document had some coding errors, which are explained below:

Around line 85:
    '=item' outside of any '=over'

Around line 90:
    You forgot a '=back' before '=head1'