How to get Marquee Zoom Button into Headers Bar?

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version

Detailed description of issue
I do not understand how to enable the marquee zooming to be turned on and off via button in the header like the pan or select tool. I only manage to activate marquee zooming after loading for once. what do I miss? how to implement? there sure is a button already coming with the webviewer…

Expected behaviour
The Marquee Tool Button is displayed next to the Pan and Select Buttons

Code snippet
documentViewer.addEventListener(‘documentLoaded’, () => {

Hello fpi-evit,

You would have to add a Stateful Button to the header, you can find this here:

Best regards,

Thank you for the quick response. I was hoping due to the demo of the Marquee Zoom Tool that there was a built in version of the button that I just needed to activate…