1 package Reaction::UI::Widget::DisplayField::Collection;
3 use Reaction::UI::WidgetClass;
5 class Collection, which {
6 fragment widget [ qw/label list/ ];
7 fragment label [ string { $_{viewport}->label } ];
8 fragment list [ item over func('viewport', 'value_names') ];
9 fragment item [ 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.