![]() |
![]()
| ![]() |
![]()
NAMEReaction::UI::ViewPort::Action::Role::OK - Integrate OK, Apply and Close events SYNOPSISpackage 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; DESCRIPTIONThis role integrates an "ok" event and inherits a close and an apply event into the consuming viewport. ATTRIBUTESok_labelDefaults to "ok". String is built by "_build_ok_label". METHODSokCalls "apply", and then "close" if successful. accept_eventsExtends "accept_events" in Reaction::UI::ViewPort::Action::Role::Close with the event "ok" if an on_close_callback was provided. INTERNAL METHODS_build_ok_labelReturns the string representing the label for the OK action. Defaults to "ok". SEE ALSOReaction::UI::ViewPort::Action::Role::Apply Reaction::UI::ViewPort::Action::Role::Close AUTHORSSee Reaction::Class for authors. LICENSESee Reaction::Class for the license.
|