![]() |
![]()
| ![]() |
![]()
NAMEReaction::UI::ViewPort::Action::Role::Close - Integrate Close and Apply events into ViewPort 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::Close'; ... 1; DESCRIPTIONThis role integrates a "close" event and inherits an apply event into the consuming viewport. ATTRIBUTESclose_labelDefaults to returned string value of "_build_close_label" ("close"). close_label_closeDefaults to returned string value of "_build_close_label_close" ("close"). close_label_cancelThis label is only shown when "changed" is true. It is initialised with the returned string value of "_build_close_label_cancel". Default: 'cancel' on_close_callbackCodeRef. If set will be called on "close". METHODScloseCalls "on_close_callback" if one is set. can_closeReturns true. applyExtends "apply" in Reaction::UI::ViewPort::Action::Role::Apply and sets the "close_label" to "close_label_cancel" if the original call to "apply" was not successfull. Returns the result of the original "apply" call. accept_eventsExtends "accept_events" in Reaction::UI::ViewPort::Action::Role::Apply with the "close" event if an "on_close_callback" was provided. SEE ALSOReaction::UI::ViewPort::Action::Role::Apply Reaction::UI::ViewPort::Action::Role::OK AUTHORSSee Reaction::Class for authors. LICENSESee Reaction::Class for the license.
|