您好,
可以在初始化designer前修改ribbon的label,如下所示:
- var designerConfig = JSON.parse(JSON.stringify(GC.Spread.Sheets.Designer.DefaultConfig));
- var ribbon = designerConfig.ribbon;
- // 修改ribbon label
- ribbon[0].buttonGroups[0].label = "新撤销";
- // 初始化designer
- var designer = new GC.Spread.Sheets.Designer.Designer("gc-designer-container", designerConfig);
复制代码
|