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