Closed Indribell closed 3 years ago
@Indribell good question! The best way is probably to define a default filter:
Sqrl.filters.define("default", function (val) {
if (val === null) {
return ""
} else {
return val
}
})
Sqrl.defaultConfig.defaultFilter = "default"
Let me know if this solves your problem!
@nebrelbug
This works perfectly. It may be interesting to add this to the documentation for other people to find?
When data consists of the following:
The result will be displayed as:
Is there no filter to automatically remove "null" from being displayed?