groupdocs-viewer / GroupDocs.Viewer-for-.NET-WebForms

Moved to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/tree/master/Demos/WebForms
https://products.groupdocs.com/viewer/net
MIT License
6 stars 0 forks source link

Customizing content in the toolbar #59

Closed usman-aziz closed 5 years ago

usman-aziz commented 5 years ago

I noticed that if we need to change the content such as tooltips or logo text in the toolbar we can do it by updating template of ViewerAppComponent in client\node_modules\@groupdocs.examples.angular\viewer\fesm2015\groupdocs.examples.angular-viewer.js file and the changes are applied. However, there are multiple copies of this file in different subfolders of viewer folder (see this). Is it the correct way to just update fesm2015\groupdocs.examples.angular-viewer.js file and leave the others?

egorovpavel commented 5 years ago

Hi, @usmanazizgroupdocs Files in node_modules folder must not be changed as it's packages folder which means that you will lose your changes once a new or updated package is installed.

Instead, we recommend extending Viewer app component as it explained here and perform UI or any other changes in your custom component files.

Here is a complete example of how you can customize UI

Let me know if this works for you.

usman-aziz commented 5 years ago

@egorovpavel Thanks for sharing the guidelines.