Forums

Full Version: Border Radius using script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"});
});