How to remove divider from header?

  1. Core version: “8.1.1”
  2. Full API: false
  3. UI version: “8.1.0”
  4. WebViewer Server: false

I’am using Free Pdf Express Viewer with pure Javascript/HTML.

How to remove divider from header?

2021-11-02_090331

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hey!

You can use the setHeaderItems api to filter out thing in the header you do not want:

This will remove all dividers in the header:

instance.UI.setHeaderItems(header => {
   const items = header.getItems().filter(item => item.type !== 'divider');
   header.update(items);
});

If you want to just remove a specific one, you can just remove it from the array returned by getItems.

Thanks!
Logan