Forums
Background Highlight - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB Designer Q & A (https://bdn.bdb.ai/forumdisplay.php?fid=16)
+---- Thread: Background Highlight (/showthread.php?tid=437)



Background Highlight - rubeena.hajira - 12-23-2022

Script for Background Highlight Style.
·        This is to be written on component Script.
·        This script changes the color on click of the respective component.

var division = sdk.getDivIdFromComponetId( 'label2' );
sdk.applyStyles( "#" + division + " span", {"color": "#fff", "background": "#6979af"} );