akiran / akiran/react-slick

Custom navigation buttons outside & with correct disabled state

Aperta
#2,271 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

As described in #2013, it's possible to render navigation buttons outside of the slider component by passing the Slider ref and calling the respective methods on it (`slickNext()` and `slickPrev()`).

However, I didn't find a way to correctly disable the buttons based on the current slider state.
Maybe some additional properties like `hasNext` or `hasPrev` should be exposed on the Slider class?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.