Page 2 of 2

Re: How to add custom button to viewer toolbar?

Posted: Fri Feb 15, 2019 3:56 pm
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

Re: How to add custom button to viewer toolbar?

Posted: Tue Feb 19, 2019 8:55 am
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.

Re: How to add custom button to viewer toolbar?

Posted: Tue Feb 19, 2019 9:21 am
by mrapi
great.thanks!

Re: How to add custom button to viewer toolbar?

Posted: Tue Feb 19, 2019 10:30 am
by HighAley
Hello.

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

Thank you.

Re: How to add custom button to viewer toolbar?

Posted: Mon Jul 29, 2024 2:40 am
by salt98ruan
Cannot read properties of undefined (reading 'SmallButton')

Stimulsoft Reports.JS versin: 2024.3.2

Re: How to add custom button to viewer toolbar?

Posted: Mon Jul 29, 2024 12:21 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.