button tap not reacting when view gets added a 2nd time

后端 未结 3 1379
眼角桃花
眼角桃花 2021-01-20 01:34

When an item from a list gets selected i execute the following lines of code.

this.details = Ext.create(\'EventManager.view.EventInfoView\');
this.getNavigat         


        
3条回答
  •  野性不改
    2021-01-20 02:03

    A new version of sencha architect was released which allows adding not listed properties.

    I solved this by adding an action field on my button, and in my controller reacting to that action.

    {
        xtype: 'button',
        id: 'acceptEventButton',
        ui: 'confirm',
        text: 'Accept',
        action: 'acceptEvent'
    }
    

    and in my controller i have the following lines of code

        control: {
            "button[action=acceptEvent]": {
                tap: 'onAcceptButtonTap'
            }
        }
    

提交回复
热议问题