Forums

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