Reaction::UI::ViewPort::Action::Role::OK - Integrate OK, Apply and Close events
package MyApp::UI::ViewPort::SomeAction; use Reaction::Class; use namespace::clean -except => 'meta'; extends 'Reaction::UI::ViewPort::Object::Mutable'; with 'Reaction::UI::ViewPort::Action::Role::OK'; ... 1;
This role integrates an ok event and inherits a close and an apply event into the consuming viewport.
ok
Defaults to ok. String is built by "_build_ok_label".
Calls apply, and then close if successful.
apply
close
Extends "accept_events" in Reaction::UI::ViewPort::Action::Role::Close with the event ok if an on_close_callback was provided.
Returns the string representing the label for the OK action. Defaults to ok.
Reaction::UI::ViewPort::Action::Role::Apply
Reaction::UI::ViewPort::Action::Role::Close
See Reaction::Class for authors.
See Reaction::Class for the license.
To install Reaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaction
CPAN shell
perl -MCPAN -e shell install Reaction
For more information on module installation, please visit the detailed CPAN module installation guide.