SpreadJS 13
GC.Spread.Sheets Namespace / ButtonVisibility Enumeration
In This Topic
    ButtonVisibility Enumeration
    In This Topic
    Specifies the visibility of cellbutton.
    Members
    MemberDescription
    alwaysIndicates the cellbutton alway visible.
    onEditingIndicates the cellbutton visible when the cell enter edit.
    onSelectedIndicates the cellbutton visible when the cell is active.
    Example
    //This example sets the visibility of cellbutton.
    //create config
    leftButtonConfig1 = {
        caption: "left",
        enabled: true,
        isLeft: true,
        visibility:GC.Spread.Sheets.ButtonVisibility.always,
    };
    rightButtonConfig1 = {
        caption: "left",
        enabled: true,
        isLeft: false,
        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.ButtonVisibility

    See Also