jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.06k stars 413 forks source link

Selector type only return Primitve type but one can return a JSX element instead #1249

Open mjfura opened 2 months ago

mjfura commented 2 months ago

The Selector type just admite one Generic type that is used for the row param, but its return type is a Primitive, that is declared above as string | number | boolean, and i think that either add another Generic Param that will be the return type, or add the JSX Element in Primitive type since it is a return type widely used to return in the selector could fix that problem.