-
- Ext.ux.GridView=Ext.extend(
- Ext.grid.GridView,
- {
- getRowClass:function(record,index)
- {
- //todo:缺少为每种类型配置一种颜色表示
- if(record.get('XXX')=="0001010201")
- return 'yellow';
- else
- return 'blue';
- }
- }
- )
Ext.ux.GridView=Ext.extend( Ext.grid.GridView, { getRowClass:function(record,index) { //todo:缺少为每种类型配置一种颜色表示 if(record.get('XXX')=="0001010201") return 'yellow'; else return 'blue'; } } )
使用:
- new Ext.grid.GridPanel({
- 。。。
- view:new Ext.ux.GridView({...})
- 。。。
- })
Ext 改变行颜色
最新推荐文章于 2021-09-23 13:56:01 发布

482

被折叠的 条评论
为什么被折叠?



