Added ListBoxMultiLazy component #556
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a new ListBoxMultiLazy component that supports loading and selecting multiple items.
The component provides two data-loading modes:
Scroll: Behaves similarly to the existing ListBoxLazy component, where additional items are fetched automatically as the user scrolls near the end of the list.
Custom: Allows consumers to define their own trigger (e.g., a button click) to load more items. In this mode, props like onUpdateLimit, pageSize, limit, and hasMoreItems are optional, since the consumer fully controls the loading behavior.
ListBoxMultiLazy component also dynamically recalculates the height of each item based on the rendered content, allowing it to fully support rows with variable heights.
ListBoxMulti.Option has been updated to forward the ref provided by ListBoxMultiLazy. This ref is required for measuring the rendered element and determining its actual height.
ListBoxLazy has also been updated to support the two modes mentioned above.
New stories, “List Box Lazy With Custom Load More Items Trigger” and “List Box Multi Lazy With Custom Load More Items Trigger”, has been added alongside the existing ListBoxLazy stories to show usage of the custom trigger mode.