SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.leftPos  property

按pixel单位,返回或设置当前网格的水平滚动的大小。 如果被设置为与现有值不同的值,就会被水平滚动。 

Getter
function leftPos(): Number
Setter
function setLeftPos(value: Number)
Code -1
    // 当点击按钮时,将会进行滚动。
    $('#btnRight').click({
        grid.setLeftPos(grid.leftPos() + 10);
    });
See Also
topIndex
leftCol
examples
聚焦单元格