Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Type aliases

Content

Content: Node | Element | HTMLElement

Content is what is actually intended to be rendered on a web page.

Private Iterable

Iterable: V[] | any

WMLElement

WMLElement: Content | Widget

WMLElement can be DOM content or a user defined widget.

Variables

Private _empty

_empty: DocumentFragment = document.createDocumentFragment()

Functions

Private adopt

  • adopt(child: Content, e: Node): void

Private box

Private domify

Private empty

  • empty(): DocumentFragment

Private forE

Private ifE

  • ifE<P>(predicate: P, positive: function, negative: function): Node
  • ifE provides an if then expression

    Type parameters

    • P

    Parameters

    Returns Node

Private node

  • node is called to create a regular DOM node

    Type parameters

    • A

    • C

    Parameters

    Returns Node

Private read

  • read<A>(path: string, o: object, defaultValue: A): A
  • read a value form an object.

    This is an alternative to regular property access that will throw exceptions if any of the values in the part are null.

    Type parameters

    • A

    Parameters

    • path: string
    • o: object
    • defaultValue: A

      This value is returned if the value is not set.

    Returns A

Private switchE

Private text

  • text(value: boolean | number | string): Text
  • text creates a new TextNode.

    Parameters

    • value: boolean | number | string

    Returns Text

Private widget

Generated using TypeDoc