[ListView] Render empty list component
See original GitHub issueI read the docs and did not find something like renderEmptyListViewComponent
in the current ListView
API. Of corse i can check if ListView
is empty by getting getRowCount()
and do whatever i want but it will be awesome to have such method to render empty component along with existing renderHeader
and renderFooter
.
I understand that it could be specific case but if not i will implement such method and make PR.
<ListView
dataSource={this.state.dataSource}
renderHeader={() => <Header />}
renderFooter={() => <Footer />}
...
renderEmptyListComponent={() => <EmptyListMessage />}
/>
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Show empty list widget with lazy loading in flutter
When I scroll and when the list empty I want to show empty list widget but in my case as soon as I...
Read more >React Native Show Message for empty FlatList
This will show the error message which you have set for the empty list but if the DataSource has some value it will...
Read more >Element: <oj-list-view> - Oracle
Description: The JET ListView enhances a HTML list element into a ... If there's no content specified, then an empty list is rendered....
Read more >listview Message if Empty - Mendix Marketplace
Insert a classname to select a listview. Configure a message to show if the listview is empty. Boolean to toggle show / hide...
Read more >How to show an "Empty list view" template - Telerik
Is that correct? In such case please use a client side script - all you need to do is to hook up to...
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 Free
Top 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
@Rewieer Maybe take the time to search the docs?
here.
@hose314 @Naoto-Ida Since 0.45,
VirtualizedList
,FlatList
andSectionList
got the ListEmptyComponent prop.