aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Widget/ListView.pm
diff options
context:
space:
mode:
authormatthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-11-09 14:04:24 +0000
committermatthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-11-09 14:04:24 +0000
commit6bc27bd310ba396fb925212fe78298ab859275cd (patch)
tree827ce76b4f58dfa027cede790ae8212db93651d3 /lib/Reaction/UI/Widget/ListView.pm
parentce0ce002223ca83946204e78bea5c178c6808e5c (diff)
downloadreaction-6bc27bd310ba396fb925212fe78298ab859275cd.tar.gz
reaction-6bc27bd310ba396fb925212fe78298ab859275cd.zip
fixup widgets to use fragment
Diffstat (limited to 'lib/Reaction/UI/Widget/ListView.pm')
-rw-r--r--lib/Reaction/UI/Widget/ListView.pm26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/Reaction/UI/Widget/ListView.pm b/lib/Reaction/UI/Widget/ListView.pm
index 26b1204..41041e7 100644
--- a/lib/Reaction/UI/Widget/ListView.pm
+++ b/lib/Reaction/UI/Widget/ListView.pm
@@ -3,7 +3,7 @@ package Reaction::UI::Widget::ListView;
use Reaction::UI::WidgetClass;
class ListView is 'Reaction::UI::Widget::GridView', which {
- widget renders [ qw/pager header body footer actions/,
+ fragment widget [ qw/pager header body footer actions/,
{
pager => sub{ $_{viewport}->pager },
object_action_count => sub{ $_{viewport}->object_action_count },
@@ -11,7 +11,7 @@ class ListView is 'Reaction::UI::Widget::GridView', which {
}
];
- pager renders
+ fragment pager
[ qw/first_page previous_page current_page next_page last_page page_list/,
{
first_page => sub{ $_{pager}->first_page },
@@ -23,36 +23,36 @@ class ListView is 'Reaction::UI::Widget::GridView', which {
}
];
- first_page renders [ string{ "First" } ],
+ fragment first_page [ string{ "First" } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_{first_page} } ) } };
- previous_page renders [ string{ "Previous" } ],
+ fragment previous_page [ string{ "Previous" } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_{previous_page} } ) } };
- current_page renders [ string{ "Current" } ],
+ fragment current_page [ string{ "Current" } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_{current_page} } ) } };
- next_page renders [ string{ "Next" } ],
+ fragment next_page [ string{ "Next" } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_{next_page} } ) } };
- last_page renders [ string{ "Last" } ],
+ fragment last_page [ string{ "Last" } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_{last_page} } ) } };
- page_list renders [ page over $_{page_list} ];
- page renders [ string{ $_ } ],
+ fragment page_list [ page over $_{page_list} ];
+ fragment page [ string{ $_ } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_ } ) } };
- actions renders [ action over func(viewport => 'actions') ];
- action renders [ 'viewport' ];
+ fragment actions [ action over func(viewport => 'actions') ];
+ fragment action [ 'viewport' ];
- header_cell renders [ string { $_{labels}->{$_} } ],
+ fragment header_cell [ string { $_{labels}->{$_} } ],
{ uri => sub{
my $ev = {order_by => $_, order_by_desc => $_{viewport}->order_by_desc ? 0 : 1 };
return $_{self}->connect_uri($ev);
}
};
- footer_cell renders [ string { $_{labels}->{$_} } ],
+ fragment footer_cell [ string { $_{labels}->{$_} } ],
{ uri => sub{
my $ev = {order_by => $_, order_by_desc => $_{viewport}->order_by_desc ? 0 : 1 };
return $_{self}->connect_uri($ev);