|
78 | 78 | </div> |
79 | 79 | ``` |
80 | 80 |
|
| 81 | +### Panel change event |
| 82 | +**Note**: If you want to access the parameters inside `on-panel-change` callback, you need to use `direction` and `index` variables as below. |
| 83 | + |
| 84 | +* `direction` returns string of `prev` or `next` |
| 85 | +* `index` returns index of current slide |
| 86 | + |
| 87 | +```html:preview |
| 88 | +<div class="oui-doc-preview-only-keep-children" style="padding:50px 35px;background-color:rgba(0,0,0,0.3)"> |
| 89 | +<oui-slideshow on-panel-change="$ctrl.onPanelChange(direction, index)"> |
| 90 | + <oui-slideshow-panel heading="New feature" |
| 91 | + picture="https://upload.wikimedia.org/wikipedia/commons/4/4a/Cercle_rouge_100%25.svg"> |
| 92 | + Display your infrastructure as a list |
| 93 | + </oui-slideshow-panel> |
| 94 | + <oui-slideshow-panel heading="Introducing Ad-Sync" |
| 95 | + picture="https://upload.wikimedia.org/wikipedia/commons/4/4a/Cercle_rouge_100%25.svg" |
| 96 | + href="http://www.ovh.com/" |
| 97 | + label="Discover"> |
| 98 | + Designed to help you synchronize your local Active Directory with your OVH Active Directory. |
| 99 | + </oui-slideshow-panel> |
| 100 | +</oui-slideshow> |
| 101 | +</div> |
| 102 | +``` |
| 103 | + |
81 | 104 | ## API |
82 | 105 |
|
83 | 106 | ### oui-slideshow |
84 | 107 |
|
85 | | -| Attribute | Type | Binding | One-time Binding | Values | Default | Description |
86 | | -| ---- | ---- | ---- | ---- | ---- | ---- | ---- |
87 | | -| `theme` | string | @? | yes | n/a | `default` | add specific theme to component |
88 | | -| `loading` | boolean | <? | no | `true`, `false` | `false` | display loader flag |
89 | | -| `loop` | boolean | <? | no | `true`, `false` | `false` | whether the component should cycle continuously |
90 | | -| `on-dismiss` | function | & | no | n/a | n/a | dismiss callback |
| 108 | +| Attribute | Type | Binding | One-time Binding | Values | Default | Description |
| 109 | +| ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| 110 | +| `theme` | string | @? | yes | n/a | `default` | add specific theme to component |
| 111 | +| `loading` | boolean | <? | no | `true`, `false` | `false` | display loader flag |
| 112 | +| `loop` | boolean | <? | no | `true`, `false` | `false` | whether the component should cycle continuously |
| 113 | +| `on-dismiss` | function | & | no | n/a | n/a | dismiss callback |
| 114 | +| `on-panel-change` | function | & | no | direction, index | n/a | handler triggered when on click of next slide |
91 | 115 |
|
92 | 116 | ### oui-slideshow-panel |
93 | 117 |
|
|
0 commit comments