Home > Back-end >  Ext genuflect is begged modified row format style
Ext genuflect is begged modified row format style

Time:11-14

ViewConfig: {
StripeRows: false,

GetRowClass: function (record, rowIndex rowParams, store) {
If (record) data) online==1 & amp; & Record. The data. The offline==0) {

Return 'gray';

Ext getCmp (" selectionchange "). GetSelectionModel (). The lock ();
} else {
StripeRows: true,
Return ';
}
},

},
Online and so on, have a look at the trouble is wrong, the color display not to come out,

CodePudding user response:

ViewConfig: {
StripeRows: false,
GetRowClass: function (record, rowIndex rowParams, store) {
Var nodes=record..childnodes;
For (the let I=0; iIf (nodes [I]. Data. NeedColor) {
Nodes [I]. Set (" nodeName ", "& lt; Font color=red>" + nodes [I]. Data. The nodeName + "& lt;/font>" );
}
}
},

},
  • Related