SMART datagrid v1.4 > Classes > ScrollBar

Back  Forward

DataLudi.ScrollBar.buttonLocation  property

스크롤바 버튼들의 표시 위치를 ScrollButtonLocation 상수로 지정한다. 

기본값은 ScrollButtonLocations.NORMAL.

Getter
function buttonLocation(): ScrollButtonLocations
Setter
function setButtonLocation(value: ScrollButtonLocations)
Code -1
    // 스크롤바 시작 위치에 버튼 두 개를 모두 배치한다.
    grid.vscrollBar().setButtonLocation(DataLudi.ScrollButtonLocation.NEAR);
    
    // 혹은,
    grid.setOptions({
        vscrollBar: {
            buttonLocation: 'near'
        },
        hscrollBar: {
            buttonLocation: 'far'
        }
    });
See Also
ScrollButtonLocation
barIndent
barWidth
GridBase.hscrollBar
GridBase.vscrollBar
Examples
스크롤바 예제