When I update the store using storeObj.insert(modelObj) the List-panel updates itself, as it should. However, Id like to see the newly added item “animate” when it appears in the view. Is there a way to accomplish this?
When I update the store using storeObj.insert(modelObj) the List-panel updates itself, as it should.
Share
In your model, have an extra field called newItem. So your model will be:
When you insert item into store with
you must have modelObj.newItem=true before inserting.
Also, before inserting any new item in, you have to mark all the old items as “NOT NEW”. For that you may have to use a dummystore.
Now use EXt.xTemplate like following: (for your Ext.List)