Skip to content

Allow controlling from outside

Compare
Choose a tag to compare
@scriptex scriptex released this 19 May 05:53
· 414 commits to master since this release

This release adds the ability to control the component from outside - for example from a parent component.
To do so, a React.Ref should be used. The Ref's current reference contains several methods including the ability to slide to the previous or next slides, to change the slide index programmatically, to retrieve the slide index programmatically or to get the array of items used by the component.