@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
14 lines (12 loc) • 734 B
TypeScript
import { DOMApi, ComponentLike, RenderableElement } from './types';
import { MergedCell } from './reactive';
/**
* Get the first DOM node from a component or array of components/nodes.
* Used for positioning during list updates and relocations.
*/
export declare function getFirstNode(api: DOMApi, rawItem: Node | ComponentLike | Array<Node | ComponentLike>): Node;
/**
* Render an element (primitive, node, or component) to a target node.
* This is the core rendering function used throughout the framework.
*/
export declare function renderElement(api: DOMApi, ctx: ComponentLike, target: Node, el: RenderableElement | RenderableElement[] | MergedCell, placeholder?: Comment | Node | null, skipRegistration?: boolean): void;