Hi,
I'd like to add a badge on the top right part of the hamburger menu icon of the GBC.
Its purpose is to count how many application are opened. I was inspired by the sample customization that came with the last versions of the GBC, which count the applications on a header bar.
Here's the link
https://4js.com/online_documentation/fjs-gbc-manual-html/reference/project/widgets_with_modelhelper.htmlThe widget that i'm editing is ChromeBarWidget.
I'm stuck in the first steps because, after copy-paste the sample header js code, new application and close application events of the model helper seem to be raised as many times as there are opened applications.
How can I handle this? Do I have to use a global variable in javascript code?
Thanks!