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
Is your feature request related to a problem? Please describe?
We can improve List component and recreate a DynamicTable component with all the edge cases.
Describe the solution you'd like
I am thinking to create a component which dynamically generated the table based on the column definitions. We can handle different kind of edge cases like hidden, custom render etc.
Here is a simple API that I am thinking to create for the Table
exporttypeColumnDef<TData>={/** * Key to access the data for a cell from an item object */key: string;/** * Header for the column */title: string;/** * Type of the column */type: "text"|"image";/** * An additional function to render the cell */render?: (item: TData)=>React.ReactNode;/** * A function to handle if the column */hidden?: (item: TData)=>boolean;/** * Additional style for the cell like col-span etc */className?: string;};
Contact Details
No response
Is your feature request related to a problem? Please describe?
We can improve List component and recreate a
DynamicTable
component with all the edge cases.Describe the solution you'd like
I am thinking to create a component which dynamically generated the table based on the column definitions. We can handle different kind of edge cases like hidden, custom render etc.
Here is a simple API that I am thinking to create for the Table
Here are the TableProps
If we have this data then we can generate the headers dynamically by looping over the columns like this
Then we can use our table component like this
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: