1 package Reaction::UI::Widget::Field::ChooseMany;
3 use Reaction::UI::WidgetClass;
5 class ChooseMany is 'Reaction::UI::Widget::Field', which {
7 fragment field [qw/available_values action_buttons selected_values current_values/];
9 fragment current_values [ hidden_value => over func('viewport', 'current_value_choices') ];
10 fragment hidden_value [ string { $_->{value} } ];
12 fragment available_values [ option => over func('viewport', 'available_value_choices') ];
13 fragment selected_values [ option => over func('viewport', 'current_value_choices') ];
14 fragment option [string {"DUMMY"}], { v_value => sub {$_->{value}}, v_name => sub {$_->{name}} };
15 fragment action_buttons [ string {"DUMMY"} ];
25 Reaction::UI::Widget::Field::ChooseMany
29 See L<Reaction::UI::Widget::Field>
31 This needs a refactor to not be tied to a dual select box, but ENOTIME
37 renders C<available_values>, C<action_buttons>, C<selected_values> and C<current_values>
41 renders the viewport's current_value_choices over hidden_value
45 C<content> is the value of the current choice
47 =head2 available_value
49 rendersthe viewport's current_available_value_choices over the option fragment
53 rendersthe viewport's current_selected_value_choices over the option fragment
57 C<content> is a dummy value but C<v_value> and C<v_name> are both set.
61 See L<Reaction::Class> for authors.
65 See L<Reaction::Class> for the license.