I am attempting to remove the divider between the leftPanelButton and the viewControlsButton in the header, but there is no dataElement property to reference, just a class. I’ve tried removing it based on class from the DOM with no luck.
How do I get rid of it? If I replace the entire header I need to figure out what the existing code is for the remaining content I want to keep, which seems laborious and risks breaking functionality.
instance.UI.setHeaderItems(function(header) {
// this depends on the version of WebViewer. You'll want to remove the "divider" object
// the "divider" should be at position 1 in version 8.8
header.headers.default.splice(1,1);
});
Please let me know if the above helps or if you want me to clarify anything
Best Regards,
Andrew Yip
Software Developer
PDFTron Systems, Inc. www.pdftron.com