Important

You are browsing the documentation for version 3.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.

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)