You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't know how I closed this. Anyways, the class of a widget can be overriden from the JS widget. An example of this can be found in the Text widget. The value of status from the data source will be used as an additional class applied to the widget.
So passing data to the Text widget like {text: "Something awesome happened!", status: "success"} will set success as an additional class on the widget and in your CSS you can add something like:
How would I go about changing the color of 1 single widget depending on data sent to that widget, since they share css classes?
The text was updated successfully, but these errors were encountered: