Adding buttons to toolbar

Hi

I'm evaluating the DocumentEditor and looking at the API I'm not clear how to add custom buttons to the toolbar.

In particular I need to buttons: "Print" to print the document and "Close" to navigate away from the editor

Please advise

Thanks!

 


4 Replies 1 reply marked as answer

MI Micha November 8, 2023 10:37 PM UTC

Hi

Is there a sample adding a Print button ? I would expect such a function to be a default part of the toolbar.


Th



BS Balamurugan Shanmugam Syncfusion Team November 9, 2023 08:56 AM UTC

Hi Micha,

We have prepared a sample to meet your requirements. In this sample, we have added a print option to the custom toolbar.


Please refer to the sample below for your reference.

 https://stackblitz.com/edit/fmdu7i-u1tkxu?file=index.ts


Please see the UG documents below for more information.

https://ej2.syncfusion.com/documentation/document-editor/print

https://ej2.syncfusion.com/documentation/document-editor/how-to/customize-tool-bar

Regards,

Balamurugan S


Marked as answer

NI Nick November 13, 2023 03:42 PM UTC

Thanks for this interesting solution!



BS Balamurugan Shanmugam Syncfusion Team November 14, 2023 06:27 AM UTC

Thanks for the response. We would be happy to assist you, as always.


Loader.
Up arrow icon