forked from loiane/extjs4-ux-gridprinter
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
In one application, we use a custom ux boolean column which modifies tdCls to display fontawesome icons for boolean values :
defaultRenderer: function(value, metaData) {
var customCls = '';
var ret = '';
if (value === true) {
customCls = 'arh-grid-col-boolean-td-true';
ret = this.trueText;
} else if (value === false) {
customCls = 'arh-grid-col-boolean-td-false';
if (this.arhDisplayGlyphForFalseValue) {
ret = this.falseText;
} else {
ret = '';
}
} else {
if (this.arhDistinctNull) {
customCls = 'arh-grid-col-boolean-td-null';
ret = this.undefinedText;
} else {
customCls = 'arh-grid-col-boolean-td-false';
if (this.arhDisplayGlyphForFalseValue) {
ret = this.falseText;
} else {
ret = '';
}
}
}
metaData.tdCls = customCls;
return ret;
}
