This is a generic banner warning that can be used to display warning and error messages to the user. The banner can contain multiple warning messages with different levels. The level of the warning indicates the image that will be used. It is also possible to configure each warning to have a subscription topic that can be used to control dynamically control the visibility of the warning. The payload published on the subscription topic should contain a boolean attribute called "value" that indicates whether or not the warning should be displayed or hidden.
This attribute is used to track the visibility status of all the warnings that are configured with a subscriptionTopic attribute. When all warnings are hidden then the overall widget will also be hidden.
This should be set to an array of objects defined the warnings to be displayed. Each object should contain a message and a severity level.
If a warning is configured with a subscriptionTopic attribute then this function will be called each time that topic is published and will update the visibility of that warning according to the payload provided. If all of the warnings are hidden then the overall widget will also be hidden.
subscriptionTopic string This is the topic subscribed to for the warning being updated.