work in progress, listview still broken
[catagits/Reaction.git] / lib / Reaction / UI / ViewPort / Collection / Grid / Member.pm
1 package Reaction::UI::ViewPort::Collection::Grid::Member;
2
3 use Reaction::Class;
4
5 class Member is 'Reaction::UI::ViewPort::Object', which {
6
7   around _build_fields_for_type_Num => sub {
8     $_[0]->(@_[1..3], { layout => 'value/number', %{ $_[4] } })
9   };
10
11   around _build_fields_for_type_Int => sub {
12     $_[0]->(@_[1..3], { layout => 'value/number', %{ $_[4] } })
13   };
14
15   around _build_fields_for_type_Bool => sub {
16     $_[0]->(@_[1..3], { layout => 'value/boolean', %{ $_[4] } })
17   };
18
19   around _build_fields_for_type_Enum => sub {
20     $_[0]->(@_[1..3], { layout => 'value/string', %{ $_[4] } })
21   };
22
23   around _build_fields_for_type_Str => sub {
24     $_[0]->(@_[1..3], { layout => 'value/string', %{ $_[4] } })
25   };
26
27   around _build_fields_for_type_SimpleStr => sub {
28     $_[0]->(@_[1..3], { layout => 'value/string', %{ $_[4] } })
29   };
30
31   around _build_fields_for_type_Reaction_InterfaceModel_Object => sub {
32     $_[0]->(@_[1..3], { layout => 'value/string', %{ $_[4] } })
33   };
34
35   around _build_fields_for_type_DateTime => sub {
36     $_[0]->(@_[1..3], { layout => 'value/date_time', %{ $_[4] } })
37   };
38
39   around _build_fields_for_type_Password => sub { return };
40   around _build_fields_for_type_ArrayRef => sub { return };
41   around _build_fields_for_type_Reaction_InterfaceModel_Collection => sub { return };
42
43 };
44
45 1;