66db4b9a05693ae3a29b536b518ea2b16efb00d3
[catagits/Reaction.git] / lib / Reaction / UI / Widget / GridView / Entity / WithActions.pm
1 package Reaction::UI::Widget::GridView::Entity::WithActions;
2
3 use Reaction::UI::WidgetClass;
4
5 #should I use inheritance here??
6 class WithActions, which {
7   fragment widget     [ qw(field_list actions) ];
8   fragment field_list [ field => over func('viewport', 'fields') ];
9   fragment field      [ 'viewport' ];
10
11   fragment actions [ action => over func(viewport => 'actions')];
12   fragment action  [ 'viewport' ];
13 };
14
15 1;