Universeorange.com/Docs/

Priya library Function reference Element functions scrollbar

    ready(() => {
        const element = select('div');
        console.log(element.scrollbar('y'));
        console.log(element.scrollbar('x'));
        console.log(element.scrollbar('width'));
        console.log(element.scrollbar('height'));
        console.log(element.scrollbar('all'));
        console.log(element.scrollbar('to', {x: 100,y: 100}));
        console.log(element.scrollbar('has'));
    });

This function can has scrollbar methods. x, y, width, height, has and all.
All returns an object with x, y, width and height.
Has returns whether the element has a scrollbar.
To moves the scrollbar position to x and y.

Last modified: 2021-06-07

© 2021 universeorange.com