diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-12-31 22:16:22 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-12-31 22:16:22 +0000 |
commit | 2f670e13aa8f30bbf6ba910f2d8ef97aa8a9e3e5 (patch) | |
tree | 512313d4cac594a322e3d1e2d4c81e4736a50567 /lib/Reaction/UI/Widget/Field/Mutable/HiddenArray.pm | |
parent | 5353e3f64517073ba9f06e732dd610fd2e52a01f (diff) | |
download | reaction-2f670e13aa8f30bbf6ba910f2d8ef97aa8a9e3e5.tar.gz reaction-2f670e13aa8f30bbf6ba910f2d8ef97aa8a9e3e5.zip |
renaming widget packages to match new viewports
Diffstat (limited to 'lib/Reaction/UI/Widget/Field/Mutable/HiddenArray.pm')
-rw-r--r-- | lib/Reaction/UI/Widget/Field/Mutable/HiddenArray.pm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/Reaction/UI/Widget/Field/Mutable/HiddenArray.pm b/lib/Reaction/UI/Widget/Field/Mutable/HiddenArray.pm new file mode 100644 index 0000000..675b2d1 --- /dev/null +++ b/lib/Reaction/UI/Widget/Field/Mutable/HiddenArray.pm @@ -0,0 +1,48 @@ +package Reaction::UI::Widget::Field::Mutable::HiddenArray; + +use Reaction::UI::WidgetClass; + +#move this to a normal list and let the hidden part be decided by the template.. +class HiddenArray is 'Reaction::UI::Widget::Field::Mutable', which { + + implements fragment hidden_list { + render hidden_field => over $_{viewport}->value; + }; + + implements fragment hidden_field { + arg field_value => $_; + }; + +}; + +1; + +__END__; + +=head1 NAME + +Reaction::UI::Widget::Field::HiddenArray + +=head1 DESCRIPTION + +See L<Reaction::UI::Widget::Field> + +=head1 FRAGMENTS + +=head2 field + +renders fragment C<item> over the values of 'value' arrayref + +=head2 item + +C<content> is $_{_} / $_ (current item in the 'value' array) + +=head1 AUTHORS + +See L<Reaction::Class> for authors. + +=head1 LICENSE + +See L<Reaction::Class> for the license. + +=cut |