1.how do I hook that button,I see in markup there is no class/id added to it?
2.it works.thanks
How to add custom button to viewer toolbar?
Re: How to add custom button to viewer toolbar?
Hello.
You are creating the button object. You could set everything you need.
You could get the default class and id in the DevTools.
The button is a div element.
You could set the Id with next code:
And set the style of the caption with next code:
Thank you.
You are creating the button object. You could set everything you need.
You could get the default class and id in the DevTools.
The button is a div element.
You could set the Id with next code:
Code: Select all
userButton.id = "userButton";
Code: Select all
userButton.caption.style.color = "#000000"
Re: How to add custom button to viewer toolbar?
great.thanks!
Re: How to add custom button to viewer toolbar?
Hello.
We are always glad to help you.
Let us know if you need any help.
Thank you.
We are always glad to help you.
Let us know if you need any help.
Thank you.