[]
        
(Showing Draft Content)

GC.Spread.Sheets.ButtonVisibility

Enumeration: ButtonVisibility

Spread.Sheets.ButtonVisibility

Specifies the visibility of cellbutton.

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.onSelected,
};
//create style
var style = new GC.Spread.Sheets.Style();
style.cellButtons=[
     leftButtonConfig1,
     rightButtonConfig1
];
sheet.setStyle(0, 0, style);

Table of contents

Enumeration members

Enumeration members

always

always = 0

Indicates the cellbutton alway visible.


onEditing

onEditing = 2

Indicates the cellbutton visible when the cell enter edit.


onSelected

onSelected = 1

Indicates the cellbutton visible when the cell is active.