之前在自定义里的时候是普通显示,放到第一排就变成点一下才出来
designerConfig = GC.Spread.Sheets.Designer.DefaultConfig;
/* command */
var temperatureCommand = {
title: "环境条件",
type: "button",
text: temperature,
commandName: "temperature",
iconClass: "ribbon-button-upload"
};
注册commandMapdesignerConfig.commandMap = {
temperature: temperatureCommand
};
/* commandGroup */let envirCommandGroup = {
"label": "环境条件",
class: "relativeStaffer",
thumbnailClass: "ribbon-thumbnail-spreadsettings",
"commandGroup": {
"children": [{
"direction": "vertical",
"commands": ['temperature', 'humidity', 'pressure'
]
}]
}
}
designerConfig.ribbon[0].buttonGroups.push(envirCommandGroup);
|