Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script for shadow
#1
It should be given in dashboard and the component's shadow property should be on..

//shadow
Widget.prototype.setDraggableDivShadow = function() {
if(IsBoolean(this.getShowShadow())) {
var shadow = hex2rgb(convertColorToHex(this.m_shadowcolor), this.m_shadowopacity);
$("#draggableDiv" + this.m_objectid).css({
"box-shadow": "0 8px 16px 0 rgba(0, 0, 0, 0.2)" ,
"-webkit-box-shadow": "0 8px 16px 0 rgba(0, 0, 0, 0.2)",
"-moz-box-shadow": "0 8px 16px 0 rgba(0, 0, 0, 0.2)"
});
} else {
/** remove the css property so designMode shadow can be aplied if set from preference **/
$("#draggableDiv" + this.m_objectid).css({
"box-shadow": "",
"-webkit-box-shadow": "",
"-moz-box-shadow": ""
});
}
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)