NAME
Reaction::UI::Widget::Collection::Grid - A collection with header and footer
DESCRIPTION
This widget is a subclass of Reaction::UI::Widget::Collection. Additionally to its superclass, it provides abstract means of a header and a footer.
FRAGMENTS
header_cells
Will set the labels argument to the viewport's field_labels attribute value.
Afterwards, the header_cell fragment will be rendered once for every entry in the viewport's computed_field_order.
Additionally, the header_action_cell will be rendered when the current viewport's member_action_count is larger than 0.
header_cell
Populates the label argument with a localised value of the labels hash reference argument. The used key is extracted from the _ topic argument.
header_action_cell
Populates the col_count argument with the viewports member_action_count attribute value.
LAYOUT SETS
base
share/skin/base/layout/collection/grid.tt
The base grid layout set does not provide an markup, just abstract layouting.
The following layouts are provided:
- widget
-
Renders, in sequence, the
header,bodyandfooterfragments. - header
-
Renders the
header_rowfragment. - header_row
-
Renders the
header_cellsfragment. - header_cell
-
Renders the
header_cell_contentsfragment. - header_cell_contents
-
Renders the value of the
labelargument. - header_action_cell
-
Renders the string
Actions. - body
-
Renders the
membersfragment implemented in Reaction::UI::Widget::Collection.
default
share/skin/default/layout/collection/grid.tt
This layout set extends the NEXT in the skin inheritance hierarchy.
It is meant to extend upon the layout set with the same name in the base skin and provides the same abstract structure but with a table based markup.
The following layouts are provided:
- widget
-
Renders the next skin's
widgetfragment surrounded by atableelement with the class attributegrid. - header
-
Renders the next skin's
headerfragment surrounded by atheadelement. - header_row
-
Wrap's the next skin's
header_rowfragment in atrelement. - header_cell
-
Wrap's the next skin's
header_cellfragment in athelement. - header_action_cell
-
Wrap's the next skin's
header_action_cellfragment in athelement with acolspanattribute set to the number of actions found in thecol_countattribute - body
-
Wrap's the next skin's
bodyfragment in atbodyelement.
SEE ALSO
AUTHORS
See Reaction::Class for authors.
LICENSE
See Reaction::Class for the license.