Contracts List Infinite Scroll
We have made it possible to make the list of contracts support infinite scroll.
When the following state variable is set:
window.hapi.contract.state.contractListShouldBeInfiniteScroll = true
The following widgets will have the list infinitely scrollable:
danger
Please note that you need to set the state variable at the time HAPI Elements loads otherwise if the first page of contracts in the list loads then you set the variable, it will load the first page again when user reaches the end of scroll; so the variable should be set before the first page of the list has loaded.
As part of this change, the following have been added:
window.hapi.contract.service.loadMoreContracts
function for the non-labeled listwindow.hapi.contract.utils.getUserProvidedFilters
functionwindow.hapi.contract.utils.getNextPageOffsetAndLimit
functionwindow.hapi.contract.utils.getContractsQueryParams
function had a second argument added that is optionalwindow.hapi.contract.state.contractListShouldBeInfiniteScroll
state variableContractUserProvidedFilters
type