summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-04-17 16:10:22 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-05-11 18:30:48 +0200
commit1f56c4e5bb816ca5e952b326917c02984d69b88a (patch)
treed4adb6ee09348fa57925f326f4be24bb14a77b5f /install/ui/details.js
parent8c3eadf978dc14c4e22da5c32e51d407b9770a28 (diff)
downloadfreeipa.git-1f56c4e5bb816ca5e952b326917c02984d69b88a.tar.gz
freeipa.git-1f56c4e5bb816ca5e952b326917c02984d69b88a.tar.xz
freeipa.git-1f56c4e5bb816ca5e952b326917c02984d69b88a.zip
Control buttons
Control buttons is a widget which contains action buttons. It is located in facet header and are supposed to replace old action buttons created by IPA.action_button(spec) call. The benefit is that now it is possible to define new buttons declaratively in spec definition without a need of inheriting facet and overriding create method. Action buttons are an entry poing for execution facet-wide action so they are tightly bound to facet. Action button options: name: string label: string, human readable label tooltip: string, human readable tooltip href: string, optional icon: string, icon class needs_confirm: boolean, default false confirm_msg: string, human readable confirmation message confirm_dialog: confirmation dialog, optional, custom confirmation dialog action: action, action which will be executed enabled: boolean, optional, default true Control buttons are define in facet spec in control_buttons property. Its a spec object with following attributes: all attributes which normal widget can have buttons: array of action_button specs state_listeners: array of state listener specs In init phase control_buttons_widget should assign a action_button a facet. control_buttons_widget are resposible for evaluation of action_button disable/enable state because they contain state_listeners which creates the state upon the enabled/disabled state is evaluated. State listeners are similar to state_evaluators. The differce is that the state is not evaluated from record set but from facet itself. The execution of evaluation is bound to a facet event. https://fedorahosted.org/freeipa/ticket/2247
Diffstat (limited to 'install/ui/details.js')
0 files changed, 0 insertions, 0 deletions