Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XNode

Hierarchy

  • XNode

Index

Constructors

constructor

  • new XNode(name: string | Function, attributes: IAttributes, children: XNode[] | XNode[][] | any[], isProperty?: boolean, isTemplate?: boolean): XNode

Properties

attributes

attributes: IAttributes

children

children: XNode[] | XNode[][] | any[]

Optional isProperty

isProperty: boolean

Optional isTemplate

isTemplate: boolean

name

name: string | Function

Methods

toString

  • toString(): string

Static attach

  • attach<T, T1, K>(n: IClassOf<T>, tag: K): object
  • attach<T, T1>(n: IClassOf<T>, tag: function): object

Static attached

Static create

Static namespace

  • namespace(ns: string, assemblyName: string): (Anonymous function)
  • Declares Root Namespace and Assembly. You can use return function to to declare the type

    Parameters

    • ns: string

      Root Namespace

    • assemblyName: string

    Returns (Anonymous function)

Static prepare

  • prepare<T>(n: any, isProperty?: boolean, isTemplate?: boolean): function
  • Type parameters

    • T

    Parameters

    • n: any
    • Optional isProperty: boolean
    • Optional isTemplate: boolean

    Returns function

      • (attributes: Partial<T>, ...nodes: XNode[]): XNode
      • Parameters

        • attributes: Partial<T>
        • Rest ...nodes: XNode[]

        Returns XNode

Static property

Static template

Generated using TypeDoc