Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/pagination.d"

Index

Type aliases

IPaginationAlignment

IPaginationAlignment: { Centered: number; Left: number; Right: number }

Pagination Alignment

Type declaration

  • Centered: number
  • Left: number
  • Right: number

Variables

Const Pagination

Pagination: (props: IPaginationProps) => IPagination
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);
    }
});

Type declaration

Const PaginationAlignment

PaginationAlignment: IPaginationAlignment

Pagination Alignment

Generated using TypeDoc