SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.hideBordersWhenFitted  property

如果为true,就会在通过运行网格列拟合并用列填充网格宽度时,阻止绘制最后的右边框。 

将会无法绘制网格页眉页脚边框和网格内容边框以及最后的右侧数据单元格的右边框。 

默认值为true.

Getter
function hideBordersWhenFitted(): Boolean
Setter
function setHideBordersWhenFitted(value: Boolean)
Code -1
    grid.setOptions({
        display: {
            hideBordersWhenFitted: true
        }
    });
Code -2
    grid.setDisplayOptions({
        hideBordersWhenFitted: true
    });
Code -3
    grid.displayOptions().setHideBordersWhenFitted(true));
See Also
DisplayOptions.fitStyle
Examples
网格拟合