UNPKG

mithril-materialized

Version:
26 lines (25 loc) 949 B
import { FactoryComponent, Vnode, Attributes } from 'mithril'; export interface IMaterialModal extends Attributes { id: string; title: string; description?: string | Vnode<any, any>; /** Set to true when the description contains HTML */ richContent?: boolean; /** Fixate the footer, so you can show more content. */ fixedFooter?: boolean; /** Display on the bottom */ bottomSheet?: boolean; /** Materialize css' modal options */ options?: Partial<M.ModalOptions>; /** Menu buttons, from left to right */ buttons?: Array<{ label: string; iconName?: string; disabled?: boolean; onclick?: (e: UIEvent) => void; }>; /** Get the modal instance, so you can control it programmatically */ onCreate?: (modal: M.Modal) => void; } /** Builds a modal panel, which can be triggered using its id */ export declare const ModalPanel: FactoryComponent<IMaterialModal>;