SpreadJS 14
GC.Spread.Sheets.CellTypes Namespace / ButtonList type / direction Method
Whether the order is vertical.
In This Topic
    direction Method
    In This Topic
    Gets or sets the buttonList list's orders.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.ButtonList();
    var returnValue; // Type: any
    returnValue = instance.direction(value);
    function direction( 
       value : Direction
    ) : any;

    Parameters

    value
    Whether the order is vertical.

    Return Value

    If no value is set, returns whether the buttonList list's orders is vertical; otherwise, returns the checkbox list cellType.
    Example
    //This example creates a buttonList list cell.
    var cellType2 = new GC.Spread.Sheets.CellTypes.ButtonList();
    cellType2.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType2.direction(GC.Spread.Sheets.CellTypes.Direction.vertical);
    activeSheet.getCell(2, 2).cellType(cellType2);
    See Also

    Reference

    ButtonList type