View Full Version : Ext.dataview.component.DataItem

27 Mar 2012, 1:01 AM
Hi Everyone,

I created a list based on Ext.dataview.DataView component, and the item is based on Ext.dataview.component.DataItem.

I referred to this http://www.sencha.com/blog/dive-into-dataview-with-sencha-touch-2-beta-2/ blog.
Thanks for that. But on my case, How do I add two the same component in each list item.

For example, each list has two buttons named delete and edit.

Kindly help me please, any Idea and suggestion will be appreciated.


27 Mar 2012, 5:59 AM
In your dataMap you should be able to name them two different things

dataMap : {
getDeleteButton : {
setText : 'Delete'
getEditButton : {
setText : 'Edit'

And then do the apply/update methods.