Forums
This script can be used to change the opacity by script. - 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: This script can be used to change the opacity by script. (/showthread.php?tid=621)



This script can be used to change the opacity by script. - Asma M - 12-23-2022

var paddings = {
 "leftBorderToDescription": 0,
 "leftDescriptionToMarkers": 0,
 "leftMarkersToLine": 0,
 "rightBorderToLegend": 0,
 "rightLegendToLine": 0,
 "rightLegendToDescription": 0,
 "rightDescriptionToMarkers": 0,
 "rightMarkersToLine": 0,
 "topTitleToSubtitle": 0,
 "topSubtitleToChart": 0,
 "bottomBorderToDescription": 0,
 "bottomDescriptionToMarkers": 0,
 "chartToBorder": 0
 };
sdk.getWidget('Datagrid1').m_chartpaddings = paddings;

var ch = sdk.getWidget('Datagrid1'); ch.m_rowopacity = 0.8;
    ch.m_headerrowopacity = 0.6;
    ch.m_rowhoveropacity = 0.4;
    ch.m_rowselectedopacity = 0.6;
    ch.m_rowlinesopacity = 0.8;