Forums
Radio button UI enhancement - 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: Radio button UI enhancement (/showthread.php?tid=481)



Radio button UI enhancement - Athi - 12-23-2022

Script to enhance the UI of radiobutton

var a =sdk.getWidget( 'radio55');

a.m_enhanceradio= true;

//with color
a.m_radiospacing="70";
a.m_enhanceradioobj.intialtop = 5;
a.m_enhanceradioobj.margin ='0 5px 0 0';
a.m_enhanceradioobj.intialwidth = 20;
a.m_enhanceradioobj.intialheight = 20;
a.m_enhanceradioobj.intialborder = "2px solid #a72722";
a.m_enhanceradioobj.intialimg="";
a.m_enhanceradioobj.selectedtop = 9;
a.m_enhanceradioobj.selectedleft =4;
a.m_enhanceradioobj.selectedwidth = 12;
a.m_enhanceradioobj.selectedheight = 12;
a.m_enhanceradioobj.selectedimg ="";
a.m_enhanceradioobj.intialbackground = "transparent";
a.m_enhanceradioobj.selectedbackground = "#a72722";



Above script can be used to increase the radio button size, change the color of radio-button, increase the passing between text and button.