12-22-2022, 05:45 AM
(This post was last modified: 12-22-2022, 12:22 PM by rubeena.hajira.)
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"});
});
*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"});
});