How to update single custom container for different screens
Hi there Touchgfx team!
I've this ui requirement: A header with battery, date/time, battery, and extra icon.


I also have 15 different screens. The model receives a signal from the backend and thats how it knows that it needs to show the USB icon.
I know how to do a notify from model -> view, and I know I could do this for the 15 different screens. The problem I'm facing is that the USB icon needs to appear in the other screens if the user goes to a different screen. I know I could also setup a flag in the model and get the vale in the setupScreen()
My question is: is there an easier way to do this? I would like to avoid creating 15 different propagation functions for the USB, and other 15 for the other icon. I was thinking about creating a custom container and updating it from the model just once, and somehow all the views with the container will update.
I have the same question for the "date/time" text. At this moment, each view has a function that calls the presenter, and then the model, to get the date value. But, if the data/time text is in all the screens, is there a better way?
Thanks a lot in advance
