SMART datagrid v.1 > Classes > RowIndicator

Back  Forward

DataLudi.RowIndicator.width  property

行指示器的宽度。 

以Pixel为单位,指定行指示器在网格中所占据的宽度。 如果将这个值指定为小于0,就会以stylesfont为标准,计算最大显示数字的长度,自动计算宽度。 

在任何情况下,都会显示为minWidthmaxWidth之间的值。 如果指定为小于0,这个值就会被忽视。 

默认值为0.

Getter
function width(): Integer
Setter
function setWidth(value: Integer)
Code -1
    grid.setOptions({
        rowIndicator: {
            width: 50
        }
    });
Code -2
    grid.rowIndicator().setWidth(50);    
See Also
minWidth
maxWidth
GridStyles
Examples
行指示器