How to show empty state if table array is empty when filter?
See original GitHub issueHi there!
In my case I want to show empty state if user search something with input v-model="filter"
and found nothing. I see _items
is private. Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
React Table if Array is empty, no render - Stack Overflow
I have 4 arrays which get data from an API, then i render 4 tables with those arrays, the problem here is, if...
Read more >Check if an Array is Empty in React | bobbyhadz
To check if an array is empty in React, access its length property, e.g. arr. length . If an array's length is equal...
Read more >selectedFlatRows is an empty array after filtering #2210 - GitHub
Describe the bug (required) selectedFlatRows becomes empty when filtering selected values yet, selectedRowId are still showing previously ...
Read more >Examples › Empty state | Mantine DataTable
If records property points to an empty array, the DataTable component will indicate its empty state by displaying a customizable icon and text, ......
Read more >ISBLANK function in Excel to check if cell is blank - Ablebits
See to use Excel ISBLANK function to identify blank cells and take different actions depending on whether a cell is empty or not....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wonder if a named slot for
empty
and a slot foremptyFiltered
could be created (and conditionally shown based on the length ofthis._items
and/orthis.items
?The conditional
slot
s could be set to have atd
withcolspan
set to of the number of fields available.It would also be nice to have a named slot for
tfoot
element (or conditionaltfoot
). Or an option to repeat thethead
fields in thetfoot
.Should be all fixed is latest master branch.