File

src/lib/progressive-loader/progressive-loader.component.ts

Metadata

Index

Methods
Inputs
Outputs

Inputs

progressiveLoaderState
Type : ProgressiveLoaderState
Default value : { currentIteration: 1, iterationSize: 25, iterationEnd: 100, totalItems: 1000, }

The state configuration for the progressive loader.

Outputs

progressiveLoaderStateChange
Type : ProgressiveLoaderState

Event emitted when the progressive loader state changes.

Methods

allItemsLoaded
allItemsLoaded()

Determines if all available items have been loaded.

Returns : boolean

true if all items are loaded

canLoadMore
canLoadMore()

Determines if more data can be loaded based on the current progressive loader state.

Returns : boolean

true if more data can be loaded

getLoadedItemsCount
getLoadedItemsCount()

Gets the actual number of loaded items (cannot exceed totalItems).

Returns : number

the number of currently loaded items

hasMoreItems
hasMoreItems()

Determines if there are more items available to load (ignoring iteration limits).

Returns : boolean

true if more items exist

onLoadMore
onLoadMore()

Handles the "Load More" action for progressive loading. Increments the current iteration and emits the updated state.

Returns : void

results matching ""

    No results matching ""