1.0.3 • Published 7 months ago

@types/clusterize.js-paging v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/clusterize.js-paging

Summary

This package contains type definitions for clusterize.js-paging (https://github.com/zazukoians/clusterize.js-paging).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clusterize.js-paging.

index.d.ts

// Type definitions for clusterize.js-paging 1.0
// Project: https://github.com/zazukoians/clusterize.js-paging
// Definitions by: Goran Jovanovic <https://github.com/gjovanovicst>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare class ClusterizePaging {
    constructor(options: ClusterizePaging.Options);

    destroy(clean?: boolean): void;
    refresh(force?: boolean): void;
    clear(): void;
    getRowsAmount(): number;
    getScrollProgress(): number;
    update(data?: string[]): void;
    append(rows: string[]): void;
    prepend(rows: string[]): void;
}

declare namespace ClusterizePaging {
    interface Options {
        scrollId: string;
        contentId: string;
        dummyRow?: string | undefined;
        preload?: number | undefined;
        pageSize?: number | undefined;
        rows?: string[] | undefined;
        tag?: string | undefined;
        rows_in_block?: number | undefined;
        blocks_in_cluster?: number | undefined;
        show_no_data_row?: boolean | undefined;
        no_data_text?: string | undefined;
        no_data_class?: string | undefined;
        keep_parity?: boolean | undefined;
        callbacks?: Callbacks | undefined;
    }

    interface Callbacks {
        clusterWillChange?: (() => void) | undefined;
        clusterChanged?: (() => void) | undefined;
        scrollingProgress?: ((progress: number) => void) | undefined;
        rowsLoaded?: (() => void) | undefined;
        loadRows?: ((offset: number) => void) | undefined;
    }
}

export = ClusterizePaging;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:00 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Goran Jovanovic.