Skip to content

add support for custom boolean column #7

@abenhamdine

Description

@abenhamdine

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;

		}

currently nothing is displayed in print view :
grid :
image

print preview :
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions