Posted 30 December 2024, 6:00 pm EST
The code in the demo for adding a custom button to the main toolbar only seems to allow a 24x24 svg icon button. The main toolbar does contain a button with text - the document title button - but it is styled differently and the viewer.toolbar.addItem function does not appear to allow for setting text or custom styles. I have not been able to create a custom button that matches the document title button. Is there any way in the client API to add a button like that?
I see that the secondary toolbar has a demo for adding textual buttons, but that seems to be a completely different object with the ability to customize the render function. I just want to add a textual button to the main toolbar.