SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / CheckBoxList type / isFlowLayout Method
Whether the layout is autofit.
In This Topic
    isFlowLayout Method
    In This Topic
    Gets or sets the checkbox list's layout is autofit.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.CheckBoxList();
    var returnValue; // Type: any
    returnValue = instance.isFlowLayout(value);
    function isFlowLayout( 
       value : boolean
    ) : any;

    Parameters

    value
    Whether the layout is autofit.

    Return Value

    If no value is set, returns whether the layout is autofit, returns the checkbox list cellType.
    Example
    //This example creates a checkbox list cell.
    var cellType2 = new GC.Spread.Sheets.CellTypes.CheckBoxList();
    cellType2.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType2.isFlowLayout(true);
    activeSheet.getCell(2, 2).cellType(cellType2);
    See Also