akiran / akiran/react-slick

prop / func to return what index of the slider you are at?

Offen
#1,514 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
11.9k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## I'm looking for robust way of determining whether the slider is at the very-beginning or very-end of the gallery.

I'm currently using the `afterChange` prop, but that returns the index of the particular image it ended at and not where it is on the 'dots'.

I need this functionality to conditionally render my custom arrows depending on the point of the slider / gallery it is in; I can make a PR if this is a feature that is missing

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.