aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Collection/Grid/Member.pm
blob: aae25dd44cdd8285ac3b72daef2aba1163596126 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package Reaction::UI::ViewPort::Collection::Grid::Member;

use Reaction::Class;

class Member is 'Reaction::UI::ViewPort::Object', which {

  around _build_fields_for_type_Num => sub {
    $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {}} })
  };

  around _build_fields_for_type_Int => sub {
    $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Bool => sub {
    $_[0]->(@_[1,2], { layout => 'value/boolean', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Enum => sub {
    $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Str => sub {
    $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Reaction_Types_Core_SimpleStr => sub {
    $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Reaction_InterfaceModel_Object => sub {
    $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Reaction_Types_DateTime_DateTime => sub {
    $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
  };

  around _build_fields_for_type_Reaction_Types_Core_Password => sub { return };
  around _build_fields_for_type_ArrayRef => sub { return };
  around _build_fields_for_type_Reaction_InterfaceModel_Collection => sub { return };

};

1;