Skip to content

ListView API

Vito Chen edited this page Apr 2, 2017 · 6 revisions

Customize ListView

Prop Default Type Description
headerView null func This is the header of the listview, which is always shown at the top of the list
rowView null func This is the row content of the listview, which will be rendered row by row
sectionHeaderView null func If provided, a header is rendered for this section.
paginationFetchingView null func This view will be displayed when you are fetching the data from the server at the first time
paginationAllLoadedView null func This view will be displayed, if there is no more rowView returned from the server. It means the list has been loaded completely
paginationWaitingView null func This view will be displayed when you are loading more data from the server. It should be the FooterView of the ListView. By default, it will show a loading spinner
emptyView null func If there is no data while you are trying to fetch data from the server at the first time, this view will be displayed
separator null any true, false, func. You can set it to true to display the separator in the default style, or false to hide the separator. And, you can customise it by passing your own View Component

Clone this wiki locally