Files
freeipa/install/ui
Petr Vobornik 1f56c4e5bb 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
2012-05-11 18:30:48 +02:00
..
2011-12-14 15:44:36 +00:00
2012-05-11 18:30:48 +02:00
2012-04-17 17:53:25 -04:00
2012-03-29 13:39:53 +02:00
2012-03-29 13:39:37 +02:00
2012-03-29 13:39:53 +02:00
2012-03-29 13:39:53 +02:00
2012-03-29 13:39:53 +02:00
2011-11-14 16:47:10 -05:00
2012-03-15 16:08:16 +01:00
2011-12-06 22:08:07 +00:00
2012-03-29 13:39:53 +02:00
2012-05-11 18:30:48 +02:00
2011-02-03 15:04:23 -05:00
2012-03-29 13:39:53 +02:00
2012-03-19 18:37:39 +01:00
2012-03-20 17:32:23 +01:00
2011-12-06 22:07:52 +00:00
2012-05-11 18:30:48 +02:00
2012-05-11 18:30:48 +02:00
2011-10-27 14:05:12 +00:00
2011-01-20 14:12:47 +00:00
2011-01-20 14:12:47 +00:00
2012-03-15 16:08:16 +01:00
2011-01-20 14:12:47 +00:00
2012-02-28 23:58:51 -05:00
2012-04-26 14:32:17 +02:00
2012-03-02 11:45:21 -06:00
2012-03-29 13:39:37 +02:00
2012-03-29 13:39:53 +02:00
2012-02-29 13:01:16 +01:00
2012-03-29 13:39:53 +02:00
2012-03-19 18:37:39 +01:00
2012-02-28 23:58:51 -05:00
2012-05-11 18:30:48 +02:00