Important
You are browsing documentation for version 5.0 of OroCommerce, OroCRM, and OroPlatform, maintained until August 2024 and supported until March 2026. See version 5.1 (the latest LTS version) of the Oro documentation for information on latest features.
See our Release Process documentation for more information on the currently supported and upcoming releases.
LoadMoreCollection
LoadMoreCollection is a collection with “load more” functionality support. Any add/remove actions is considered as already done on the server, and collection updates state.totalItemsQuantity and route.limit
It requires an API route which accepts the limit query parameter.
Augment: RoutingCollection
loadMoreCollection.parse()
Kind: instance method of [LoadMoreCollection](#module_LoadMoreCollection)
loadMoreCollection.loadMore() ⇒ $.Promise
Loads additional state.loadMoreItemsQuantity items to this collection
Kind: instance method of [LoadMoreCollection](#module_LoadMoreCollection) Returns: $.Promise - promise
loadMoreCollection._onAdd()
Kind: instance method of [LoadMoreCollection](#module_LoadMoreCollection)
loadMoreCollection._onRemove()
Kind: instance method of [LoadMoreCollection](#module_LoadMoreCollection)