# How to get Marquee Zoom Button into Headers Bar?

**URL:** <https://pdfjs.community/t/how-to-get-marquee-zoom-button-into-headers-bar/3085>\
**Category:** Technical Support\
**Created:** [January 17, 2024, 3:49pm UTC](https://pdfjs.community/t/how-to-get-marquee-zoom-button-into-headers-bar/3085 "2024-01-17T15:49:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fpi-evit](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fpi-evit](https://pdfjs.community/u/fpi-evit)\
**Post date:** [January 17, 2024, 3:49pm UTC](https://pdfjs.community/t/how-to-get-marquee-zoom-button-into-headers-bar/3085/1 "2024-01-17T15:49:20Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**  
latest

**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’, () =\> {  
UI.enableTool(Tools.ToolNames.MARQUEE)  
});

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [January 17, 2024, 4:45pm UTC](https://pdfjs.community/t/how-to-get-marquee-zoom-button-into-headers-bar/3085/3 "2024-01-17T16:45:00Z")

</div>

Hello fpi-evit,

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

> **[PDF.js Express Viewer Customize Toolbar | Documentation](https://pdfjs.express/documentation/ui-customization/customizing-header)**

Best regards,  
Tyler

---

<div class="post-metadata">

**Author:** ![fpi-evit](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fpi-evit](https://pdfjs.community/u/fpi-evit)\
**Post date:** [January 17, 2024, 6:52pm UTC](https://pdfjs.community/t/how-to-get-marquee-zoom-button-into-headers-bar/3085/4 "2024-01-17T18:52:18Z")

</div>

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…
