UNPKG

@winged/core

Version:

Morden webapp framekwork made only for ts developers. (UNDER DEVELOPMENT, PLEASE DO NOT USE)

24 lines (23 loc) 1 kB
import { StateDependencies, ViewState } from '../../types'; import { Renderable } from '../Renderable'; import { AttrDict, ContentStructList, PrevSibling, VNodeRegister } from '../vdom'; import { LogicalNode } from './LogicalNode'; export declare class LNSlotPlugin extends LogicalNode { static availAttrKeys: string[]; slotName: string; children: Renderable[]; renderState: { state: ViewState; modifiedState: ViewState; }; protected isSingle: boolean; private renderCache?; constructor(attrDict: AttrDict, children: ContentStructList, register: VNodeRegister); /** slotPlugin won't render by default, it will only be render by it's slot */ doRender(state: ViewState, modifiedState: ViewState): boolean; renderBySlot(container: HTMLElement, prevSibling: PrevSibling): boolean; forEachChildren(fn: Renderable.ChildrenIter): void; destroyDomElement(): void; destroy(): void; protected initStateDependencies(): StateDependencies; }