|
7 | 7 | ### Normal |
8 | 8 |
|
9 | 9 | ```html:preview |
| 10 | +<div class="oui-doc-preview-only-keep-children" ng-init="$ctrl.action1 = false; $ctrl.action2 = false; $ctrl.action3 = false"> |
10 | 11 | <oui-action-menu |
11 | 12 | text="Actions" |
12 | 13 | aria-label="Server: actions" |
13 | 14 | align="start"> |
14 | 15 | <oui-action-menu-item |
15 | 16 | text="Action 1" |
16 | 17 | aria-label="Server: action 1" |
17 | | - on-click="$ctrl.showCurrentValueInPopup('Action 1')"></oui-action-menu-item> |
| 18 | + on-click="$ctrl.action1 = true"></oui-action-menu-item> |
18 | 19 | <oui-action-menu-item |
19 | 20 | text="Action 2" |
20 | 21 | aria-label="Server: action 2" |
21 | | - on-click="$ctrl.showCurrentValueInPopup('Action 2')"></oui-action-menu-item> |
| 22 | + on-click="$ctrl.action2 = true"></oui-action-menu-item> |
22 | 23 | <oui-action-menu-item |
23 | 24 | text="Action 3 (disabled)" |
24 | 25 | aria-label="Server: action 3" |
25 | | - on-click="$ctrl.showCurrentValueInPopup('Action 3')" |
| 26 | + on-click="$ctrl.action3 = true" |
26 | 27 | disabled></oui-action-menu-item> |
27 | 28 | <oui-action-menu-divider></oui-action-menu-divider> |
28 | 29 | <oui-action-menu-item |
29 | 30 | text="Lien externe" |
30 | 31 | href="#" |
31 | 32 | external></oui-action-menu-item> |
32 | 33 | </oui-action-menu> |
| 34 | +<div>Action 1: {{$ctrl.action1}}</div> |
| 35 | +<div>Action 2: {{$ctrl.action2}}</div> |
| 36 | +<div>Action 3: {{$ctrl.action3}}</div> |
| 37 | +</div> |
33 | 38 | ``` |
34 | 39 |
|
35 | 40 | ### Compact |
36 | 41 |
|
37 | 42 | ```html:preview |
| 43 | +<div class="oui-doc-preview-only-keep-children" ng-init="$ctrl.action1_1 = false; $ctrl.action2_1 = false; $ctrl.action3_1 = false"> |
38 | 44 | <div class="oui-action-menu-container"> |
39 | 45 | <oui-action-menu |
40 | 46 | aria-label="Server: actions" |
|
43 | 49 | <oui-action-menu-item |
44 | 50 | text="Action 1" |
45 | 51 | aria-label="Server: action 1" |
46 | | - on-click="$ctrl.showCurrentValueInPopup('Action 1')"></oui-action-menu-item> |
| 52 | + on-click="$ctrl.action1_1 = true"></oui-action-menu-item> |
47 | 53 | <oui-action-menu-item |
48 | 54 | text="Action 2" |
49 | 55 | aria-label="Server: action 2" |
50 | | - on-click="$ctrl.showCurrentValueInPopup('Action 2')"></oui-action-menu-item> |
| 56 | + on-click="$ctrl.action2_1 = true"></oui-action-menu-item> |
51 | 57 | <oui-action-menu-item |
52 | 58 | text="Action 3 (disabled)" |
53 | 59 | aria-label="Server: action 3" |
54 | | - on-click="$ctrl.showCurrentValueInPopup('Action 3')" |
| 60 | + on-click="$ctrl.action3_1 = true" |
55 | 61 | disabled></oui-action-menu-item> |
56 | 62 | <oui-action-menu-divider></oui-action-menu-divider> |
57 | 63 | <oui-action-menu-item |
58 | 64 | text="Lien externe" |
59 | 65 | href="#" |
60 | 66 | external></oui-action-menu-item> |
61 | 67 | </oui-action-menu> |
| 68 | + <div>Action 1: {{$ctrl.action1_1}}</div> |
| 69 | + <div>Action 2: {{$ctrl.action2_1}}</div> |
| 70 | + <div>Action 3: {{$ctrl.action3_1}}</div> |
| 71 | +</div> |
62 | 72 | </div> |
63 | 73 | ``` |
64 | 74 |
|
|
0 commit comments