![]() ![]() ![]() By default the data is exactly what was put into the data source, but it's also possible to provide custom extractors. ![]() Takes a data entry from the data source and its ids and should return a renderable component to be rendered as the row. (rowData, sectionID, rowID, highlightRow) => renderable they don't span the full width of your view (as in the ListViewGridLayoutExample), you should set the pageSize to be a multiple of the number of cells per row, otherwise you're likely to see gaps at the edge of the ListView as new pages are loaded. Note: if your 'rows' are actually cells, i.e. Threshold in pixels (virtual, not physical) for calling onEndReached. Use this to make it so that the first screen worth of data appears at one time instead of over the course of multiple frames. How many rows to render on initial component mount. This breaks up the work into smaller chunks to reduce the chance of dropping frames while rendering rows.Īn instance of ListView.DataSource to use Type Rate-limited row rendering - By default, only one row is rendered per event-loop (customizable with the pageSize prop). Only re-render changed rows - the rowHasChanged function provided to the data source tells the ListView if it needs to re-render a row because the source data has changed - see ListViewDataSource for more details. There are a few performance operations designed to make ListView scroll smoothly while dynamically loading potentially very large (or conceptually infinite) data sets: ListView also supports more advanced features, including sections with sticky section headers, header and footer support, callbacks on reaching the end of the available data ( onEndReached) and on the set of rows that are visible in the device viewport change ( onChangeVisibleRows), and several performance optimizations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |