3金币
通过以下代码我在单元格上增加了一个按钮,我怎么移除这个按钮。
- var cellButtons = [
- {
- imageType: GC.Spread.Sheets.ButtonImageType.dropdown,
- command: "openList",
- useButtonStyle: true,
- }
- ];
- var dropDowns = [
- {
- type: GC.Spread.Sheets.DropDownType.list,
- option: {
- items: [{
- text: 'item1',
- value: 'item1'
- }],
- }
- }
- ]
- activeSheet.getRange(rowIndex, columnIndex, 1, 1).cellButtons(cellButtons).dropDowns(dropDowns);
复制代码
|
最佳答案
查看完整内容
您好,可以传参null清除单元格按钮,示例代码如下:
sheet.getRange(1, 1, 1, 1).cellButtons(null).dropDowns(null);
|