了解了,请参考以下代码来重写展开列表按钮的逻辑:
- let templateDesignModeCommand =
- GC.Spread.Sheets.Designer.getCommand("templateDesignMode");
- let oldExecute = templateDesignModeCommand.execute;
- templateDesignModeCommand.execute = function (context, propertyName, args) {
- oldExecute.call(this, context, propertyName, args);
- console.log("Your code here.");
- };
- designerConfig.commandMap = {};
- designerConfig.commandMap["templateDesignMode"] = templateDesignModeCommand;
复制代码
|