@evan.network/ui-angular-core
Version:
The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:
44 lines (43 loc) • 1.24 kB
TypeScript
import { OnInit, ChangeDetectorRef } from 'angular-libs';
/**************************************************************************************************/
/**
* Contract paged listentry display
*
* Usage:
* <list-paging *ngIf="!loading" #listPaging
* [offset]="listEntries.length"
* [totalSize]="listEntryCount"
* [loadMore]="loadMore.bind(this)">
* </list-paging>
*
* @class Component ListPagingComponent
*/
export declare class ListPagingComponent implements OnInit {
private ref;
/***************** inputs & outpus *****************/
/**
* offset to load the data from (start at index 0, 10, 33, ...)
*/
offset: number;
/**
* page size to split the loaded bunches in
*/
totalSize: number;
/**
* function that is called to load more data
*/
loadMore: Function;
/***************** variables *****************/
/**
* loading indicator
*/
private loading;
/***************** initialization *****************/
constructor(ref: ChangeDetectorRef);
/**
* ref.detach and ref.detectChanges
*/
ngOnInit(): void;
/***************** functions *****************/
private runLoadMore;
}