更新时间:2022-09-30 23:09:48
Css 代码:
1
2
|
.my-custom-grid- red .x-column-header-inner {zoom: 1 ; position : relative ; white-space : nowrap ; line-height : 22px ; padding : 0px 6px 12px 96px ; background-color : red ;}
.my-custom-grid- green .x-column-header-inner {zoom: 1 ; position : relative ; white-space : nowrap ; line-height : 22px ; padding : 0px 6px 12px 96px ; background-color : green ;}
|
Extjs Grid gridcolumn 代码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ text: 'Nom du compte' ,
flex: 1, sortable: true ,
dataIndex: 'name_account' ,
baseCls: 'my-custom-grid-red' ,
width: 260 }, { text: 'Ville' ,
sortable: true ,
dataIndex: 'ville' ,
width: 200,
baseCls: 'my-custom-grid-green' } |
把baseCls 改为 cls
本文转自yunlielai51CTO博客,原文链接:http://blog.51cto.com/4925054/1397651,如需转载请自行联系原作者