Header Buttons via script

Hello everyone, good morning.
I’m creating a custom widget that receives alarm notification, I took advantage of this header button functionality which is great and I’m using it, but I need to hide and show the icon via script


I saw it in a post that has how to modify the header, but have any parameters to manage header buttons? or is there any other way?

Hi @matheus, thanks for contacting us!

Currently, it’s not possible to manage header buttons directly like that or hide them. You could try implementing this functionality on a custom widget, it’s more work than using the built-in widgets on Tago but would give you much finer-grained control over the widget’s interface. In a custom widget, you can parse the data and hide or show elements according to your needs. There’s a guide right here on the community.

Let me know if this helps you!