REACT TREE MULTI SELECTv4.1.0

Infinite Scroll

You can implement infinite scrolling by using the onDropdownLastItemReached callback.
Within this callback, you can call the imperative loadData method, which internally invokes the onLoadData callback to fetch and append additional nodes to the existing dataset.
If onLoadData is not provided or returns an empty array, no data will be appended.

NOTE

The onDropdownLastItemReached callback is triggered when the last item (including overscan) is rendered. The component uses overscan to render a small number of additional items just outside the visible area for smoother scrolling. By default, it overscans 1 item above and below the visible range.

Infinite scroll

You can implement pagination using a similar approach.
A custom Footer component can be used to display a "Load more" button, which, when clicked, calls the imperative loadData method to fetch and append the next page of data to the existing dataset.

Pagination