Reaction::UI::Widget::Field::Collection - A field representing a collection
This field class will render a collection of values found in the viewport's value_names and localised before passed to the layout.
value_names
renders label and list passing additional variable "viewport"
label
list
content contains the viewport's label
content
renders fragment item over the viewport's value_names
content contains the value of the current item ($_ / $_{_})
share/skin/base/layout/field/collection.tt
The following layouts are provided:
Renders the label_box and list fragments.
label_box
Renders a span element containing the label argument.
span
Renders the items inside a div and ul element.
item
div
ul
Renders the name argument inside a li element.
name
li
share/skin/default/layout/field/collection.tt
This layout set extends the NEXT one in the parent skin.
NEXT
The same as in the base skin, except the label is surrounded by a strong element.
base
strong
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.