1 package Reaction::UI::Widget::DisplayField::Collection;
3 use Reaction::UI::WidgetClass;
5 class Collection, which {
6 widget renders [ qw/label list/ => { viewport => func(self => 'viewport') } ];
7 label renders [ string { $_{viewport}->label } ];
8 list renders [ item over func('viewport', 'value_names') ];
9 item renders [ string { $_ } ];
19 Reaction::UI::Widget::DisplayField::Collection
27 renders C<label> and C<list> passing additional variable "viewport"
31 C<content> contains the viewport's label
35 renders fragment item over the viewport's C<value_names>
39 C<content> contains the value of the current item ($_ / $_{_})
43 See L<Reaction::Class> for authors.
47 See L<Reaction::Class> for the license.