Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Border Radius using script
#1
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"});
});
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)