diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-21 00:38:47 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-21 00:38:47 +0000 |
commit | 599c1172394e3377d8e3e28c06557a99a1a10d1e (patch) | |
tree | 78e277ddc4cd5af9c43f9b033d82afc071e3f1e8 /lib/Reaction/UI/Widget/Object.pm | |
parent | 3671c9c3a3eb9640371d09a80ff88ae774d0a0b7 (diff) | |
download | reaction-599c1172394e3377d8e3e28c06557a99a1a10d1e.tar.gz reaction-599c1172394e3377d8e3e28c06557a99a1a10d1e.zip |
container support built into fields and an example of usage in ComponentUI
Diffstat (limited to 'lib/Reaction/UI/Widget/Object.pm')
-rw-r--r-- | lib/Reaction/UI/Widget/Object.pm | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lib/Reaction/UI/Widget/Object.pm b/lib/Reaction/UI/Widget/Object.pm index dc898cc..a44a66d 100644 --- a/lib/Reaction/UI/Widget/Object.pm +++ b/lib/Reaction/UI/Widget/Object.pm @@ -4,7 +4,15 @@ use Reaction::UI::WidgetClass; use namespace::clean -except => [ qw(meta) ]; +implements fragment container_list { + render container => over $_{viewport}->containers; +}; + +implements fragment container { + render 'viewport'; +}; +#we won't be needing these anymore implements fragment field_list { render field => over $_{viewport}->fields; }; @@ -15,7 +23,6 @@ implements fragment field { __PACKAGE__->meta->make_immutable; - 1; __END__; @@ -28,9 +35,19 @@ Reaction::UI::Widget::Object =head1 FRAGMENTS +=head2 container_list + +Sequentially renders the C<fields> of the viewport; + +=head2 container + +Renders the C<field> viewport passed by C<field_list> + +=head1 DEPRECATED FRAGMENTS + =head2 field_list -Sequentially renders the C<fields> of the viewport in the C<computed_field_order> +Sequentially renders the C<fields> of the viewport; =head2 field |