add onServerPage function #462
Open
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.
This pull request adds support for server-side pagination to the
VirtualSelectcomponent, allowing options to be loaded in pages from the server as the user scrolls through the dropdown. The update includes new properties, methods, and documentation to help developers implement and use this feature efficiently.Server-side pagination support:
onServerPagecallback property andserverPageSizeoption to enable server-side pagination, allowing options to be loaded in pages from the server. The component now tracks pagination state (currentPage,hasMorePages, etc.) and automatically loads the next page when the user scrolls near the bottom of the dropdown. [1] [2] [3] [4] [5] [6] [7] [8]setServerPaginatedOptionsmethod, which appends new options from the server and updates pagination state. This method is documented and demonstrated in the usage examples. [1] [2] [3]Documentation updates:
docs/examples.md,docs/methods.md, anddocs/properties.md, including property descriptions, code samples, and notes on expected behavior. [1] [2] [3] [4]These changes make it much easier to work with large datasets by loading only the necessary options as needed, improving both performance and user experience.