You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DataTable supports a columns prop that allows consumers to customize their table's column configuration. For each column, consumers may override the Cell property within react-table to customize the display and bring in custom UI elements / formatting.
Currently, the Cell property accepts a prop type similar to PropTypes.oneOfType([PropTypes.element, PropTypes.func]). However, this does not support passing an element type, i.e. just the component name.
The text was updated successfully, but these errors were encountered:
adamstankiewicz
changed the title
PropTypes for DataTable
[sanity check] PropTypes.oneOfType([PropTypes.element, PropTypes.func]) replaced with PropTypes.elementTypeOct 20, 2023
Example component where issue is seen:
DataTable
supports acolumns
prop that allows consumers to customize their table's column configuration. For each column, consumers may override theCell
property withinreact-table
to customize the display and bring in custom UI elements / formatting.Currently, the
Cell
property accepts a prop type similar toPropTypes.oneOfType([PropTypes.element, PropTypes.func])
. However, this does not support passing an element type, i.e. just the component name.where
TestTableColumnCell
might be the following, for example:The text was updated successfully, but these errors were encountered: