re-carousel icon indicating copy to clipboard operation
re-carousel copied to clipboard

Jump to slide / Reset

Open besserwisser opened this issue 5 years ago • 6 comments

How can I jump to a particular slide? I have to "reset" the slider to the first slide by code. I could not find any way to jump to the first slide (tried to find indicator click possibilities, but there are not implemented according to #100). Is there some way to achieve what I want to do?

besserwisser avatar Oct 03 '19 09:10 besserwisser

I just made a pull request for this, you can use that code #126 You can pass 'currentFrameIndex' as a prop y´to your Carousel to jump to a slide. For solving issue #100 you can use 'setFrameHandler(index)' in the same PR, in a similar fashion as using 'nextHandler' and 'prevHandler' for Widgets (see their example of indicator dots). You can also call 'setFrameHandler(index, milliseconds)' to specify how fast the frames should pass between updating.

liuloppan avatar Dec 02 '19 21:12 liuloppan

Hello, any news about this PR?

ikhudo avatar May 25 '20 18:05 ikhudo

Is this merge on master?

jjzcru avatar Jul 07 '20 19:07 jjzcru

@liuloppan can you jump multiple frames?

jjzcru avatar Jul 07 '20 22:07 jjzcru

Hey that would be a real cool (and important) feature. Seems to be on hold for a longer time now. Is there any plan to merge it in the near future?

realptkkit avatar Oct 23 '21 20:10 realptkkit

Sorry guys I don't have time to continue working on this, you are welcome to make a fork if you would like to make some update.

amio avatar Oct 26 '21 10:10 amio