ttamturk Posted July 3, 2018 Share Posted July 3, 2018 Hi, Before upgrading to last build (it was extjs 4 before) i used to add a listener to uniMenuButton's click event to trigger ArrowClick event and make whole button working as arrow. It's not working anymore. Can anybody help me how can i do this with new build. This is not working: JSAddListener('click', JSFunction('sender, e, eOpts', ' sender.fireEvent("arrowclick", sender, e, eOpts); ') ); Best Regards Project1.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 3, 2018 Share Posted July 3, 2018 Hi, You can try this: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniMenuButton1.JSInterface.JSAddListener('click', 'function(me){me.maybeShowMenu()}'); end; Best regards, 1 Quote Link to comment Share on other sites More sharing options...
ttamturk Posted July 4, 2018 Author Share Posted July 4, 2018 Thanks, it works. 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.