-
27 Mar 2012 1:01 AM #1
Ext.dataview.component.DataItem
Ext.dataview.component.DataItem
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...ouch-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.
Thanks!
-
27 Mar 2012 5:59 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
In your dataMap you should be able to name them two different things
And then do the apply/update methods.Code:dataMap : { ... getDeleteButton : { setText : 'Delete' }, getEditButton : { setText : 'Edit' } }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote