Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change of color while hovering
#1
Script to change color while hovering (moving cursor)on the component:
* This should be written in the component script.

var p=sdk.getContext( 'applyfiltercolor' );
if(p==0)
{
}
else
{
sdk.setContext( 'applyfiltercolor',0);

var xx=sdk.getWidget( 'label1' );
xx.m_cursortype="default";
xx.draw();

var b = sdk.getDivIdFromComponetId( 'label1' );
sdk.applyStyle('#'+b+' span',"background-color", "rgba(254,0,34,0.7)");
$('#Target_filter_search01').css("background-color","#f2f0f0");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)