Constructors
constructor
- new XNode(name: string | Function, attributes: IAttributes, children: XNode[] | XNode[][] | any[], isProperty?: boolean, isTemplate?: boolean): XNode
-
Parameters
-
name: string | Function
-
-
children: XNode[] | XNode[][] | any[]
-
Optional isProperty: boolean
-
Optional isTemplate: boolean
Properties
Optional isProperty
isProperty: boolean
Optional isTemplate
isTemplate: boolean
name
name: string | Function
Methods
Static attach
- attach<T, T1, K>(n: IClassOf<T>, tag: K): object
- attach<T, T1>(n: IClassOf<T>, tag: function): object
-
Type parameters
-
T
-
T1: HTMLElementTagNameMap
-
K: keyof T1
Parameters
Returns object
-
Type parameters
Parameters
-
-
tag: function
-
-
Parameters
-
Optional a: Partial<T1>
-
Rest ...nodes: XNode[]
Returns object
Static create
-
Parameters
-
name: string | Function
-
-
Rest ...children: Array<XNode | XNode[] | any>
Static namespace
- namespace(ns: string, assemblyName: string): (Anonymous function)
-
Parameters
-
ns: string
-
assemblyName: string
Returns (Anonymous function)
Static prepare
- prepare<T>(n: any, isProperty?: boolean, isTemplate?: boolean): function
-
Type parameters
Parameters
-
n: any
-
Optional isProperty: boolean
-
Optional isTemplate: boolean
Returns function
-
- (attributes: Partial<T>, ...nodes: XNode[]): XNode
-
Parameters
-
attributes: Partial<T>
-
Rest ...nodes: XNode[]
This is only for intellisense...