SpreadJS 13
GC.Spread.Sheets Namespace / ButtonPosition Enumeration
In This Topic
    ButtonPosition Enumeration
    In This Topic
    Specifies the position of cellbutton.
    Members
    MemberDescription
    leftIndicates the cellbutton is in left of the cell.
    rightIndicates the cellbutton is in right of the cell.
    Example
    //This example sets the position of cellbutton.
    //create config
    leftButtonConfig1 = {
        caption: "left",
        enabled: true,
        position: GC.Spread.Sheets.ButtonPosition.right,
        visibility:GC.Spread.Sheets.ButtonVisibility.always,
    };
    rightButtonConfig1 = {
        caption: "left",
        enabled: true,
        position: GC.Spread.Sheets.ButtonPosition.left,
        visibility:GC.Spread.Sheets.ButtonVisibility.onseleciton,
    };
    //create style
    var style = new GC.Spread.Sheets.Style();
    style.cellButtons=[
         leftButtonConfig1,
         rightButtonConfig1
    ];
    sheet.setStyle(0, 0, style);
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.ButtonPosition

    See Also