Posted 22 March 2024, 3:43 am EST
Hi,
I have added a custom button to the toolbar ribbon which should clear the active spreadsheet when clicked. Is this possible?
This is the code I have so far
export function addResetButton(config) {
config.commandMap = {
cmdResetSpreadsheet: {
title: 'Reset Spreadsheet',
text: '',
type: 'button',
iconClass: 'cmdResetSpreadsheet',
bigButton: false,
commandName: 'cmdResetSpreadsheet',
execute: async () => {
// add code here to clear active spreadsheet
},
},
};
}