How can I change the colour of a table overlay contents based on the displayed value?
Please find attached a custom ‘DataTableOVerlay’ which allows to change the background color of the data table overlay based on the value of the parameter displayed.
The DataTableOverlayEx.js file has to be put in your Runtime folder in Runtime/Graphics/Scripts/OverlayTypes/
An example is then available in the stand-alone OverlayPlayground.boc file. You can take this example and merge it in your model in the Overlay folder.
Note that the OverlayPlayground.boc file contains the exemple of a “tictoc-layout” module which toggles the layout every two seconds. Please refer to post this other post for more information about the “tictoc-layout” module and its purpose.