1 package Reaction::UI::Widget::GridView;
3 use Reaction::UI::WidgetClass;
5 class GridView, which {
6 fragment widget [ qw/header body footer/ ];
8 fragment header [ 'header_row' ];
9 fragment header_row [ header_cell over func('viewport', 'field_order'),
10 { labels => func(viewport => 'field_labels') } ];
11 fragment header_cell [ string { $_{labels}->{$_} } ], { field_name => $_ };
13 fragment footer [ 'footer_row' ];
14 fragment footer_row [ footer_cell over func('viewport', 'field_order'),
15 { labels => func(viewport => 'field_labels') } ];
16 fragment footer_cell [ string { $_{labels}->{$_} } ], { field_name => $_ };
18 fragment body [ viewport over func('viewport','entities')];