Posted 6 September 2023, 8:49 am EST - Updated 6 September 2023, 8:57 am EST
Hello,
I’m trying to add a dropdown button but I have an issue with the label of the button.
I have the word “false” displayed instead of the button title.
Here is an example of the code I currently have.
cmdRefreshCache: {
title: "Refresh",
text: "Refresh",
type: "dropdown",
showDropdownButton: true,
iconClass: "wb-icon-refresh-cache",
commandName: "cmdRefreshCache",
bigButton: true,
subCommands: [
"cmdRefreshCacheTest1",
"cmdRefreshCacheTest2"
]
execute: async (context: GCDesigner.Spread.Sheets.Designer.Designer, propertyName: string) => {
console.log("Property name : " + propertyName);
}
},
cmdRefreshCacheTest1: {
title: "test 1",
text: "test 1",
commandName: "cmdRefreshCacheTest1",
execute: this.onRefreshCacheTest1
},
cmdRefreshCacheTest2: {
title: "test 2",
text: "test 2",
commandName: "cmdRefreshCacheTest2",
execute: this.onRefreshCacheTest2
},
I’d like to display the right labels instead of “false”.
Thanks in advance.
Best regards.