mithril-materialized
Version:
A materialize library for mithril.
17 lines (16 loc) • 489 B
TypeScript
import { FactoryComponent, Attributes } from 'mithril';
export interface PaginationItem extends Attributes {
href: string;
disabled?: boolean;
}
export interface PaginationAttrs extends Attributes {
/**
* How many items do we show
* @default 9 or items.length, whatever is the smallest
*/
size?: number;
/** The active page index */
curPage?: number;
items: PaginationItem[];
}
export declare const Pagination: FactoryComponent<PaginationAttrs>;