0

在我的控制器中,我有。

               'panel > button':{
                    click:function(){
                        console.log('button clicked')

                        var view = Ext.ComponentQuery.query('#alexPanel')[0];

                        var modelItem = view.getPostValue() // i get the data from the form
                        //here i would like to update my store with a new item
                    }
                }

谢谢你们帮助我。

4

1 回答 1

1

应该很简单:

getXXXStore().add(modelItem);

其中 XXX 是控制器stores属性中配置的商店名称。

于 2012-09-30T15:25:48.357 回答