[]
Specifies the type of cellbutton.
example
//This example sets the type of cellbutton.
//create config
leftButtonConfig1 = {
caption: "left",
enabled: true,
isLeft: true,
imageType:GC.Spread.Sheets.ButtonImageType.left,
};
rightButtonConfig1 = {
caption: "left",
enabled: true,
isLeft: false,
imageType:GC.Spread.Sheets.ButtonImageType.right,
};
//create style
var style = new GC.Spread.Sheets.Style();
style.cellButtons=[
leftButtonConfig1,
rightButtonConfig1
];
sheet.setStyle(0, 0, style);
• cancel = 3
Indicates the cellbutton type is cancel.
• clear = 2
Indicates the cellbutton type is clear.
• collapse = 17
Indicates the cellbutton type is collapse.
• custom = 1
Indicates the cellbutton type is custom.
• dropdown = 5
Indicates the cellbutton type is dropdown.
• ellipsis = 6
Indicates the cellbutton type is ellipsis.
• expand = 18
Indicates the cellbutton type is expand.
• left = 7
Indicates the cellbutton type is left.
• minus = 10
Indicates the cellbutton type is minus.
• none = 0
Indicates the cellbutton image type is none.
• ok = 4
Indicates the cellbutton type is ok.
• plus = 9
Indicates the cellbutton type is plus.
• redo = 12
Indicates the cellbutton type is redo.
• right = 8
Indicates the cellbutton type is right.
• search = 13
Indicates the cellbutton type is search.
• separator = 14
Indicates the cellbutton type is separator.
• spinLeft = 15
Indicates the cellbutton type is spinLeft.
• spinRight = 16
Indicates the cellbutton type is spinRight.
• undo = 11
Indicates the cellbutton type is undo.