skafy Posted September 18, 2018 Share Posted September 18, 2018 is it possible to change button background color on runtime? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 19, 2018 Share Posted September 19, 2018 Yes, with CSS Quote Link to comment Share on other sites More sharing options...
delagoutte Posted September 19, 2018 Share Posted September 19, 2018 create your css for apply to button onruntime : UniSession.AddJS('$(''#'+TUniControl(YourButton).JSId+''').addClass(''YourCssClass'')'); and for remove UniSession.AddJS('$(''#'+TUniControl(YourButton).JSId+''').removeClass(''YourCssClass'')'); Quote Link to comment Share on other sites More sharing options...
skafy Posted September 20, 2018 Author Share Posted September 20, 2018 Thar worked. Thank you both!. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.