UNPKG

mithril-materialized

Version:
21 lines (20 loc) 640 B
import { FactoryComponent, Attributes, Vnode } from 'mithril'; export interface IInternalPaginationOption extends IPaginationOption { active?: boolean; title: number | Vnode<any, any>; } export interface IPaginationOption extends Attributes { href: string; disabled?: boolean; } export interface IPaginationOptions 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: IPaginationOption[]; } export declare const Pagination: FactoryComponent<IPaginationOptions>;