komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more

Home Page:http://ka-table.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty state for remote data

olliejm opened this issue · comments

commented

Perhaps I missed something but I don't see any way to provide some JSX to render when the table has an empty data array? For remote fetched data it's possible that there can be no results, if you're using some sort of filtering, so I think it should be possible to optionally define what should be rendered within the table body when the data array is empty

Looks like you are speaking about childComponents noDataRow: see how it works in this demo https://komarovalexander.github.io/ka-table/#/search just enter some random text to search field

commented

Ah thank you I missed that completely, makes sense