ExtJs manually firing Click event, button param is different from mouse click

后端 未结 5 1439
名媛妹妹
名媛妹妹 2021-01-05 10:47

So, I have a login controller, you can click login with mouse or press Enter key, like this:

Ext.define(\'My.controller.Login\', {
    extend: \'Ext.app.Cont         


        
5条回答
  •  感动是毒
    2021-01-05 11:00

    this will call the handler function in your button, in my case it worked, due i override that button handler with additional functionality and parameters value changes...(extjs 4.1.1)

    Ext.getCmp('#idLogin button').handler();
    

提交回复
热议问题