如何在extjs touch List控件中在item行添加图片
2011-11-02 15:23
585 查看
Ext.setup({ icon: 'icon.png', glossOnIcon: false, onReady: function() { Ext.regModel('Contact', { fields: ['firstName', 'lastName', 'imgURL'] }); var store = new Ext.data.JsonStore({ model : 'Contact', sorters: 'lastName', getGroupString : function(record) { return record.get('lastName')[0]; }, data: [ {firstName: 'Tommy', lastName: 'Maintz', imgURL:'myImage.png'}, {firstName: 'Rob', lastName: 'Dougan', imgURL:'myImage.png'}, {firstName: 'Ed', lastName: 'Spencer', imgURL:'myImage.pngg'}, {firstName: 'Jamie', lastName: 'Avins', imgURL:'myImage.png'}, ] }); var list = new Ext.List({ fullscreen: true, itemTpl : '<img src="{imgURL}" width="20" heigh="20"></img><span>{firstName} {lastName}</span>', //grouped : true, //indexBar: true, store: store }); list.show(); } });
相关文章推荐
- 如何在Sencha Touch List Item中添加一个Button
- 在asp.net中,添加itemtempert 项模板时,如果在项模板里有其它控件,如何控件这些控件的属性?
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- combox如何添加带Value和Text的item(类似webform中的listitem)
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- 如何为按钮或者图片控件添加超链接?
- flex 3 list控件添加Item的方法【1061: 调用可能未定义的方法 addItem (通过 static 类型 spark.components:List 引用)】
- 如何在点击sencha-touch-list中通过点击item获得所在的绑定字段
- 有关Coolite MultiSelect控件如何在.cs后台文件中添加Item的方法
- 解决Win32 SDK编程添加list control控件程序无法运行的问题 . 和如何画进度条
- sencha-touch1.1中如何对list表item进行选中
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- CheckBoxList控件基本用法 如何给DropDownList控件添加边框[整理]
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性