Reputation:
In my controller i have.
'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
}
}
Thank you guys for helping me out.
Upvotes: 0
Views: 2034
Reputation: 312149
Should be as simple as:
getXXXStore().add(modelItem);
Where XXX is the name of your store as configured in your controller's stores
property.
Upvotes: 1