1 package Reaction::UI::Widget::Action;
3 use Reaction::UI::WidgetClass;
5 class Action is 'Reaction::UI::Widget::Object', which {
7 #before fragment widget {
8 # arg form_id => $_{viewport}->location;
11 implements fragment ok_button_fragment {
12 if (grep { $_ eq 'ok' } $_{viewport}->accept_events) {
13 arg 'event_id' => event_id 'ok';
14 arg 'label' => $_{viewport}->ok_label;
19 implements fragment apply_button_fragment {
20 if (grep { $_ eq 'apply' } $_{viewport}->accept_events) {
21 arg 'event_id' => event_id 'apply';
22 arg 'label' => $_{viewport}->apply_label;
23 render 'apply_button';
27 implements fragment cancel_button_fragment {
28 if (grep { $_ eq 'cancel' } $_{viewport}->accept_events) {
29 arg 'event_id' => event_id 'cancel';
30 arg 'label' => $_{viewport}->cancel_label;
31 render 'cancel_button';
43 Reaction::UI::Widget::Action
49 =head2 ok_button_fragment
51 =head2 apply_button_fragment
53 =head2 cancel_button_fragment
57 See L<Reaction::Class> for authors.
61 See L<Reaction::Class> for the license.