Too general question
I want to create slideshow, but to change slides with the external buttons.
@ikawereteli That’s quite easy.
Make a button onClick() event handler, and change and change the slides.
See how to set button on click event handler:
https://www.wix.com/corvid/reference/$w/button/onclick
How to change slides by code:
https://www.wix.com/corvid/reference/$w/slideshow/changeslide
@jonatandor35 it says that $w is not a function
@ikawereteli so put it inside
$w.onReady(() =>{/*here*/})
@jonatandor35 is this correct ?
export function button6_click(event) {
$w( “#fullWidthSlides1” ).changeSlide( 1 );
}
export function fullWidthSlides1_change(event) {
$w( “#fullWidthSlides1” ).next();
}
export function button5_click(event) {
$w( “#fullWidthSlides1” ).changeSlide( 2 );
}
export function button4_click(event) {
$w( “#fullWidthSlides1” ).changeSlide( 0 );
}
@ikawereteli There’s no syntax error. But only you can know whether or not this is the desired flow.
spr .com/our-history/
Iwant to make something like this