• Pagination

    import { Components } from "gd-sprest-bs";

    // Create the pagination
    let el = document.querySelector("#pagination");
    let pagination = Components.Pagination({
    el: el,
    numberOfPages: 5,
    onClick: (index, ev) => {
    // Log the index
    console.log("The page number selected is: " + index);
    }
    });

    Parameters

    • props: IPaginationProps
    • Optional template: string
    • Optional itemTemplate: string

    Returns IPagination

Generated using TypeDoc