The documentation page for the scrollTo method of Carousel. Webix Docs

scrolls the carousel and scrollview container to a certain position

void scrollTo(number x,number y);

x

numberthe value of the horizontal scroll y
numberthe value of the vertical scroll

Example

webix.ui({
    view:"carousel",
    container:"box",
    id:"carousel1",
    cols:[
       { id:"cell1", template:"<img src='spring.jpg'/>" },
       { id:"cell2", template:"<img src='summer.jpg'/>" }
    ]
});
 
$$('carousel1').scrollTo(100,0);

See also

  • Articles

  • Back to top

    If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of carousel slider product.