Does not display boolean values
if the data, via the accessor, return a boolean value, they are not displayed in the table.
Is this a known issue, or should I use some option to convert them to string?
The main purpose of the accessor is to provide values for correct sorting and filtering comparisons and should return raw data (like a boolean). An attempt is made to convert that into something that can be displayed. However, the correct way to display non-string or non-numeric data is to use a Cell handler and convert your data there.
This seems to happen with string values of "False" and "'False'" as well - these are not raw booleans. Is this expected behavior? They are already a string - do I need to use a Cell handler to cast them to a string again?
(Ignore, not a react-table issue, sorry for the static...)
This seems to happen with string values of "False" and "'False'" as well - these are not raw booleans. Is this expected behavior? They are already a string - do I need to use a Cell handler to cast them to a string again?
(Ignore, not a react-table issue, sorry for the static...)
How you target that problem ?
You can do value.toString() to display boolean values in data table.
The main purpose of the
accessoris to provide values for correct sorting and filtering comparisons and should return raw data (like a boolean). An attempt is made to convert that into something that can be displayed. However, the correct way to display non-string or non-numeric data is to use aCellhandler and convert your data there.
Is there a supporting example?