Forums
Script to change background color of label - 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: Script to change background color of label (/showthread.php?tid=360)



Script to change background color of label - shreekantgosavi - 12-21-2022

var division = sdk.getDivIdFromComponetId( 'label123' );

sdk.applyStyles( "#" + division + " span", { "background": "#A8AFE8"} );