SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.fitStyle  property

GridFitStyle constant which specifies the way of filling the grid by adjusting the width of columns when the width of grid is left after displaying all columns. 

Defaults to GridFitStyle.NONE.

Getter
function fitStyle(): GridFitStyle
Setter
function setFitStyle(value: GridFitStyle)
Code -1
    grid.setOptions({
        display: {
            fitStyle: DataLudi.GridFitStyle.EVEN_FILL
        }
    });
Code -2
    grid.setDisplayOptions({
        fitStyle: DataLudi.GridFitStyle.EVEN
    });
Code -3
    grid.displayOptions().setFitStyle(DataLudi.GridFitStyle.FILL);
See Also
GridFitStyle
Examples
Grid Fitting