In a datatable, one of the columns has a format: function(value){…} This will format the provided value.
But it seems that if the value from the dataset is a null, the formatting function is not called at all. Why not?
I would like it to provide a default value to show in the column, even if a null.
-mads
This is expected. By default datatable automatically convert null and undefined values to empty content. If you want to have a custom logic, it needs to be placed in template instead of the format property.
template
format
http://webix.com/snippet/45c1bb90
Perfect, working as I want it to now.
Thank you.