Unfortunately, I found the buttons header to behave incorrectly.
-headerButtons: [“”],
tabCloseButton: false
In this configuration the panel has a zone that reacts to mouse clicks , and it will crash the application.
If you want a header to be without buttons you have two options:
1) use your approach and set the headerButtons to [”] and using CSS set the display property of the .smart–button to none
!Note that the button’s class name has two dashes ‘smart–button’
Thank you so much for your suggestions.
ideas with CSS are quite cumbersome, and do not allow using this panel for other purposes.
Creating a listener closest to this hidden button with its own event handling fixed the problem.