[]
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);
• always = 0
Indicates the cellbutton alway visible.
• onEditing = 2
Indicates the cellbutton visible when the cell enter edit.
• onSelected = 1
Indicates the cellbutton visible when the cell is active.