UI virtualization is essential to your Web UI performance in case you have
thousands of data item to render. The idea is to skip rendering the off screen
items and replace them with filler blocks. You need to handle the scroll and
resize events to adjust the DOM content.
The principle is straight forward, but the implementation is fussy. This
Backbone based implementation is aiming to create a general
purposed virtualized view with high quality and performance, so that people can
focus more on the user experience instead of the complexity of virtualization.
Features
Customization
The ListView is named as “list view”, but it’s not necessarily to render a
list. You can customize it into a TABLE, or a sequence of DIVs with the
listTemplate and the itemTemplate options.
backbone-virtualized-listview
UI virtualization is essential to your Web UI performance in case you have thousands of data item to render. The idea is to skip rendering the off screen items and replace them with filler blocks. You need to handle the scroll and resize events to adjust the DOM content.
The principle is straight forward, but the implementation is fussy. This Backbone based implementation is aiming to create a general purposed virtualized view with high quality and performance, so that people can focus more on the user experience instead of the complexity of virtualization.
Features
Customization
The
ListViewis named as “list view”, but it’s not necessarily to render a list. You can customize it into aTABLE, or a sequence ofDIVs with thelistTemplateand theitemTemplateoptions.Refer to the document for detail
Scroll to item
You can scroll a certain item into the viewport, method
scrollToItemis the helper.Refer to the document for detail.
Handling data change
When data is changed, you can update the view with the
setmethod.Refer to the document for detail.
Installation
Usage
Refer to the document for details.
License
MIT
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.