File size: 2,783 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### Methods

| Name         | Arguments          | Description                 |
| ------------ | ------------------ | --------------------------- |
| `slickPrev`  | None               | go to previous slide        |
| `slickNext`  | None               | go to next slide            |
| `slickGoTo`  | index, dontAnimate | go to the given slide index |
| `slickPause` | None               | pause the autoplay          |
| `slickPlay`  | None               | start the autoplay          |

#### Followings are not going to be implemented

| Name                | type   | Reason                                                                                                                                                                   |
| ------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `unslick`           | method | same functionality can be achieved with `unslick` prop                                                                                                                   |
| `slickSetOption`    | method | same functionality can be achieved via props and managing state for them in wrapper                                                                                      |
| `slickFilter`       | method | same functionality can be achieved as with dynamic slides, look at dynamic slides [example](https://github.com/akiran/react-slick/blob/master/examples/DynamicSlides.js) |
| `slickUnfilter`     | method | same functionality can be achieved as with dynamic slides, look at dynamic slides [example](https://github.com/akiran/react-slick/blob/master/examples/DynamicSlides.js) |
| `slickAdd`          | method | same functionality can be achieved as with dynamic slides, look at dynamic slides [example](https://github.com/akiran/react-slick/blob/master/examples/DynamicSlides.js) |
| `slickRemove`       | method | same functionality can be achieved as with dynamic slides, look at dynamic slides [example](https://github.com/akiran/react-slick/blob/master/examples/DynamicSlides.js) |
| `slickCurrentSlide` | method | same functionality can be achieved with `beforeChange hook`                                                                                                              |
| `slickGetOption`    | method | manage wrapper state for desired options                                                                                                                                 |
| `getSlick`          | method | a simple ref will do                                                                                                                                                     |