aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Widget/ListView.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-09-29 20:40:12 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-09-29 20:40:12 +0000
commit6ab43711ccd779eedce107001b300043e2056a0c (patch)
treeedb162ef7eaaf0aeda8a3e8fac49e4d07a637df8 /lib/Reaction/UI/Widget/ListView.pm
parentff460bc0b2bc0dc060f45cc8ac9e85d275fabcd0 (diff)
downloadreaction-6ab43711ccd779eedce107001b300043e2056a0c.tar.gz
reaction-6ab43711ccd779eedce107001b300043e2056a0c.zip
It is starting to look like this may actually work after all. Listview is the only one left i think, although the bar tests are still giving me trouble. TODO: add to the collection actions a truncate action. should be useful
Diffstat (limited to 'lib/Reaction/UI/Widget/ListView.pm')
-rw-r--r--lib/Reaction/UI/Widget/ListView.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/Reaction/UI/Widget/ListView.pm b/lib/Reaction/UI/Widget/ListView.pm
index ab80d93..7d9801c 100644
--- a/lib/Reaction/UI/Widget/ListView.pm
+++ b/lib/Reaction/UI/Widget/ListView.pm
@@ -3,24 +3,24 @@ package Reaction::UI::Widget::ListView;
use Reaction::UI::WidgetClass;
use aliased 'Reaction::UI::ViewPort::ListView' => 'ListView_VP';
-class ListView which {
+class ListView, which {
has 'viewport' => (isa => ListView_VP, is => 'ro', required => 1);
widget renders [
qw(header body) => { viewport => func(self => 'viewport') }
];
-
+
header renders [ header_entry over func(viewport => 'field_names') ];
-
+
header_entry renders [ string { $_{viewport}->field_label_map->{ $_ } } ];
-
+
body renders [ row over func(viewport => 'current_page_collection') ];
-
+
row renders [
col_entry over func(viewport => 'field_names') => { row => $_ }
];
-
+
col_entry renders [
string {
my $proto = $_{row}->$_;
@@ -35,6 +35,8 @@ class ListView which {
1;
+__END__;
+
=head1 NAME
Reaction::UI::Widget::ListView