7 Answers, 1 is accepted
There is a gap in the documentation which we will try to fix as soon as possible.
Here is a quick explanation how to customize the toolbar:
In short if you want to remove a tool you have to list all the tools that should be visible.
The full list of tools is:
I hope the information will help.
There is no build-in way to modify the ToolBar configuration at runtime. One possible option is to use the setOptions method of the Spreadsheet to change the initial settings. This however will result in re-creating the widget with the new setting, hence rebinding the data, loosing the current state and etc.
Can you confirm if this is implemented on the MVC side? It does not appear to be available.
Further is there a way to add custom buttons to the toolbar?
Specifying which will be the available tools with the Spreadsheet MVC helper is currently not supported. If you need to explicitly enable / disable some of the tools, you will need to initialize the widget with jQuery.
Appending a custom tool using the HTML helper is also not supported. If you think, that such option would add value to the widget, I would suggest you to cast your vote for the following Feature request. Meanwhile, you could still define a custom Toolbar button by initializing the widget with jQuery:
That will work. Is there a way to add to the quickaccess toolbar on initialization?
I would like to add a custom save button before the undo.
I am afraid, that a custom button could not be placed on the quick access toolbar of the Spreadsheet through configuration. Nevertheless, you could manually add the required button using jQuery:
Here you could find a simple demo implementing the above suggestion.