How to add custom button to viewer toolbar?

Stimulsoft Reports.JS discussion
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: How to add custom button to viewer toolbar?

Post by mrapi »

1.how do I hook that button,I see in markup there is no class/id added to it?
2.it works.thanks
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to add custom button to viewer toolbar?

Post by HighAley »

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:

Code: Select all

userButton.id = "userButton";
And set the style of the caption with next code:

Code: Select all

userButton.caption.style.color = "#000000"
Thank you.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: How to add custom button to viewer toolbar?

Post by mrapi »

great.thanks!
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to add custom button to viewer toolbar?

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any help.

Thank you.
Post Reply