Open masaok opened 4 years ago
i guess you could add this option to the column customBodyRender: value => {value ? value : "Whateve you would want to put here"} i know it is kinda like a work around but i don't think the datatable has the option for default values i hope it helps
Has anyone had any luck with implementing this? I am trying to push the null values to the end of the table for each column, but the following is not working
customBodyRender: (value) => {
return value === null ? "-" : value
},
Expected Behavior
Is there a way to set a "default value" when a cell is empty?
The feature would be similar to this jQuery datatables: https://datatables.net/reference/option/columns.defaultContent
Current Behavior
Empty cells are currently empty by default, but the table looks broken to some users, so a default dash value would be more meaningful.
Steps to Reproduce (for bugs)
N/A
Your Environment
Example of empty cells: