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_fragmentandvalue_layoutfragments. - label
-
Renders a
spanelement with afield_labelclass attribute containing thelabelargument and a double colon. - value_layout
-
Renders a
spanelement with afield_valueclass attribute containing thefield_valueargument.
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
baseskin except that thelabelargument is surrounded by astrongelement.
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.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 85:
'=item' outside of any '=over'
- Around line 90:
You forgot a '=back' before '=head1'