SMART datagrid v.1 > Classes > ScrollBar

Back  Forward

DataLudi.ScrollBar.buttonLocation  property

Specify the display location of scroll bar buttons by ScrollButtonLocation constant. 

Defaults to ScrollButtonLocations.NORMAL.

Getter
function buttonLocation(): ScrollButtonLocations
Setter
function setButtonLocation(value: ScrollButtonLocations)
Code -1
    // Display both buttons in the start location of scroll bar.
    grid.vscrollBar().setButtonLocation(DataLudi.ScrollButtonLocation.NEAR);
    
    // or,
    grid.setOptions({
        vscrollBar: {
            buttonLocation: 'near'
        },
        hscrollBar: {
            buttonLocation: 'far'
        }
    });
See Also
ScrollButtonLocation
barIndent
barWidth
GridBase.hscrollBar
GridBase.vscrollBar
Examples
Scroll Bar Example