[]
指定cellbutton的类型
代码示例
//本示例设置了cellbutton的类型
//创建配置
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,
};
//创建样式
var style = new GC.Spread.Sheets.Style();
style.cellButtons=[
leftButtonConfig1,
rightButtonConfig1
];
sheet.setStyle(0, 0, style);
• cancel = 3
类型为cancel
• clear = 2
类型为clear
• collapse = 17
类型为collapse
• custom = 1
类型是自定义
• dropdown = 5
类型为dropdown
• ellipsis = 6
类型为ellipsis
• expand = 18
类型为expand
• left = 7
类型为left
• minus = 10
类型为minus
• none = 0
类型为none
• ok = 4
类型为ok
• plus = 9
类型为plus
• redo = 12
类型为redo
• right = 8
类型为right
• search = 13
类型为search
• separator = 14
类型为separator
• spinLeft = 15
类型为spinLeft
• spinRight = 16
类型为spinRight
• undo = 11
类型为undo