Simulating Goto Page with a Html Button

Stimulsoft Dashboards.JS discussion
Post Reply
rjorge99
Posts: 12
Joined: Tue Feb 28, 2023 6:24 pm

Simulating Goto Page with a Html Button

Post by rjorge99 »

Hi, I've been trying to navigate the report I'm showing but with custom buttons. I mean, I'm hidding the Viewer Toolbar, and I have custom html button that I would like to use to Go to the last page, first page, next page, and previous.

I've been reading the documentation, but I just can't find the methods, or samples to perform this operation.

Somebody have done this before?

Thanks
Lech Kulikowski
Posts: 6199
Joined: Tue Mar 20, 2018 5:34 am

Re: Simulating Goto Page with a Html Button

Post by Lech Kulikowski »

Hello,

Please check the following actions:

var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.renderHtml("content");

viewer.jsObject.postAction("NextPage"); //FirstPage, PrevPage, LastPage

Thank you.
Post Reply