|
Download react-slick/docs/api.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.78 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-slick/docs/api.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-slick/docs/api.md
-
curl -L -o api.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-slick/docs/api.md
2.78 kB
| ### 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 | | |