switch over to sub style from AUTOLOAD style (Widget transition)
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / HiddenArray.pm
index 54004de..a7d4a2d 100644 (file)
@@ -4,31 +4,39 @@ use Reaction::UI::WidgetClass;
 
 class HiddenArray is 'Reaction::UI::Widget::Field', which {
 
+  fragment field [ item => over func('viewport', 'value') ];
+  fragment item  [ string { $_ } ];
+
 };
 
 1;
 
+__END__;
+
+=head1 NAME
+
+Reaction::UI::Widget::Field::HiddenArray
+
+=head1 DESCRIPTION
+
+See L<Reaction::UI::Widget::Field>
+
+=head1 FRAGMENTS
 
-=for layout widget
+=head2 field
 
-[% label %] [% field %] [% message %] <br>
+renders fragment C<item> over the values of 'value' arrayref
 
-=for layout field
+=head2 item
 
-TODO
+C<content> is $_{_} / $_ (current item in the 'value' array)
 
-=for layout label
+=head1 AUTHORS
 
-<!-- This conditional goes away when mst comes up with something better -->
-[% IF content %]
-  <label for="[% id %]"> [% content | html %]: </label>
-[% END %]
+See L<Reaction::Class> for authors.
 
-=for layout message
+=head1 LICENSE
 
-<!-- This conditional goes away when mst comes up with something better -->
-[% IF content %]
-  <span> [% content | html %] </span>
-[% END %]
+See L<Reaction::Class> for the license.
 
 =cut