Provides a Higher Order Function for adding virtualization to react-widgets inputs with lists. Under the hood it uses the excellent [`react-list`](https://github.com/orgsync/react-list).
react-widgets-virtualizedProvides a Higher Order Function for adding virtualization to react-widgets inputs with lists. Under the hood it uses
the excellent react-list.
``sh`
npm install react-widgets-virtualized --save
`js
import DropdownList from 'react-widgets/DropdownList'
import virtualize from 'react-widgets-virtualized'
let VirtualDropdownList = virtualize(DropdownList)
function MyExample() {
return (
The HOC works with:
DropdownList, ComboBox, Multiselect, and SelectList. Each component accepts all
the normal widget props as well as a few of the react-list props including-
type
- pageSize
- threshold
- useStaticSize
- useTranslate3d
- itemSizeGetter
- itemSizeEstimatorNote, that instead of the react-list
itemRenderer you can continue to use itemComponent` from react-widgets to