UNPKG

maille

Version:

Component library for MithrilJS

23 lines (22 loc) 727 B
import m from "mithril"; 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>): m.Vnode<any, any>; protected buildHeader(vnode: Vnode<ThreeRowLayoutAttrs>): Children; protected buildBody(vnode: Vnode<ThreeRowLayoutAttrs>): Children; protected buildFooter(vnode: Vnode<ThreeRowLayoutAttrs>): Children; } export default ThreeRowLayout;