Documentation

scrollTo

scrolls the carousel and scrollview container to a certain position

void scrollTo(number x,number y);

Parameters

xnumberthe value of the horizontal scroll
ynumberthe value of the vertical scroll

See also

  • articles
  • 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);

    Back to top