您好,请参考以下代码来实现:
- let style = new GC.Spread.Sheets.Style();
- style.cellButtons = [
- {
- imageType: GC.Spread.Sheets.ButtonImageType.dropdown,
- command: "openDateTimePicker",
- useButtonStyle: true,
- },
- ];
- style.dropDowns = [
- {
- type: GC.Spread.Sheets.DropDownType.dateTimePicker,
- option: {
- showTime: false,
- },
- },
- ];
- sheet.setStyle(3, 1, style);
复制代码
|