Reaction::UI::Widget::Field::Mutable - Mutable fields
An extension of Reaction::UI::Widget::Field representing fields whose values can be mutated.
The following additional arguments are provided:
Contains the viewport's event id for value_string.
value_string
Defaults to the field_id argument unless already defined
field_id
Defaults to text.
text
A string containing the joined class attribute. Defaults to action-field and the current viewport's name.
action-field
name
Contains the event id for exists.
exists
Defaults to 1.
1
Renders nothing if the viewport doesn't have a message.
Otherwise, the message argument will be set to the localised string contained in the viewport's message attribute and the message fragment will be rendered.
message
Will render either field_is_required_yes or field_is_required_no depending on if value_is_required on the viewport returns true and the viewports value_string is empty.
field_is_required_yes
field_is_required_no
value_is_required
share/skin/base/layout/field/mutable.tt
The following layouts are provided:
Builds a span element with a class attribute set to the field_class argument. The element contents will be the label_fragment, field and message_fragment fragments.
span
field_class
label_fragment
field
message_fragment
Builds a label element with the for attribute set to the value of field_id and the other attributes used from the field_is_required argument. The content will be the label argument.
label
for
field_is_required
Sets the class attribute to required_field.
required_field
Empty.
Renders a span element with the message as content.
Renders the input field. The field_body fragment is used to set the value.
field_body
Creates the value attribute for the input element.
value
share/skin/default/layout/field/mutable.tt
Will render the original message fragment followed by a br element.
br
A widget allowing the manipulation of boolean values.
Allows the user to choose many items from a list of available values.
Allows the user to choose a single item from a list of available values.
A simple DateTime Reaction::UI::Widget::Field::Mutable subclass.
A simple file input field.
Renders an array reference value as a series of hidden fields.
A simple integer Reaction::UI::Widget::Field::Mutable.
Password input requiring that the password be entered twice, e.g. to input a new password.
A password input Reaction::UI::Widget::Field::Mutable.
A simple number Reaction::UI::Widget::Field::Mutable input field.
A simple string Reaction::UI::Widget::Field::Mutable input field.
A multiline input Reaction::UI::Widget::Field::Mutable.
Reaction::UI::Widget::Field
See Reaction::Class for authors.
See Reaction::Class for the license.
To install Reaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaction
CPAN shell
perl -MCPAN -e shell install Reaction
For more information on module installation, please visit the detailed CPAN module installation guide.