Forums
Border Radius using 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: Border Radius using script (/showthread.php?tid=366)



Border Radius using script - rubeena.hajira - 12-22-2022

Script to set border-radius manually for the box component:
*Below script sets border radius for top left & top right.
*This script is to be written on the component script.

sdk.setAfterRenderCallBack( 'box454',function() {
var a =  "draggableDiv" + sdk.getWidget( 'box454' ).m_objectid;
sdk.applyStyle('#'+a,{"border-top-left-radius": "20px"});
sdk.applyStyle('#'+a,{"border-bottom-left-radius": "20px"});
});