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 field_list {
12 # render field => over $_{viewport}->ordered_fields;
15 #implements fragment field {
19 implements fragment ok_button_fragment {
20 if (grep { $_ eq 'ok' } $_{viewport}->accept_events) {
21 arg 'event_id' => event_id 'ok';
22 arg 'label' => $_{viewport}->ok_label;
27 implements fragment apply_button_fragment {
28 if (grep { $_ eq 'apply' } $_{viewport}->accept_events) {
29 arg 'event_id' => event_id 'apply';
30 arg 'label' => $_{viewport}->apply_label;
31 render 'apply_button';
35 implements fragment cancel_button_fragment {
36 if (grep { $_ eq 'cancel' } $_{viewport}->accept_events) {
37 arg 'event_id' => event_id 'cancel';
38 arg 'label' => $_{viewport}->cancel_label;
39 render 'cancel_button';
51 Reaction::UI::Widget::Action
59 Renders "header", "field_list", "buttons" and "footer"
63 Sequentially renders the C<ordered_fields> of the viewport
67 Additional variables available in topic hash: "message"
71 Content is a dummy value
75 Content is a dummy value
79 See L<Reaction::Class> for authors.
83 See L<Reaction::Class> for the license.