UNPKG

maille

Version:

Component library for MithrilJS

22 lines (21 loc) 688 B
import { Children } from "mithril"; import { ClassComponent, Vnode } from "mithril"; interface RowOptions { container?: { attrs?: object; }; content: Children; } interface ThreeRowLayoutAttrs { className?: string; header?: RowOptions; body?: RowOptions; footer?: RowOptions; } declare class ThreeRowLayout implements ClassComponent<ThreeRowLayoutAttrs> { view(vnode: Vnode<ThreeRowLayoutAttrs>): any; protected buildHeader(vnode: Vnode<ThreeRowLayoutAttrs>): Children; protected buildBody(vnode: Vnode<ThreeRowLayoutAttrs>): Children; protected buildFooter(vnode: Vnode<ThreeRowLayoutAttrs>): Children; } export default ThreeRowLayout;