EasyUI
Swiper
Override defaults with $.fn.swiper.defaults.
Dependencies
- None
Usage
Create swiper from markup.
Create swiper using javascript.
Properties
| Name | Type | Description | Default |
|---|---|---|---|
| width | number | Set the swiper width. | auto |
| height | number | Set the swiper height. | 200 |
| selected | boolean | The index of current active slide panel. | 0 |
| duration | number | The duration(in ms) to navigate to another slide panel. | 400 |
| autoplay | boolean | True to play the swiper automatically. | false |
| interval | number | The time interval to play the slide panels. This property is only valid when autoplay is set to true. | 2000 |
| indicator | boolean | Define if to display the indicator. | true |
Events
| Name | Parameters | Description |
|---|---|---|
| onChange | index | Fires when the active slide panel is changed. |
Methods
| Name | Parameter | Description |
|---|---|---|
| options | none | Return the options object. |
| resize | param | Resize the swiper layout. |
| navNext | none | Navigate to the next slide panel. |
| navPrev | none | Navigate to the previous slide panel. |
