Options
All
  • Public
  • Public/Protected
  • All
Menu

splice xml helper

example

new Wrapper("inner content").wrap('ctrl', { id: 20, name: "sora"})

// => <ctrl id="20" name="sora">inner content</ctrl>

Hierarchy

  • Wrapper

Index

Constructors

constructor

  • new Wrapper(xml?: string | number): Wrapper

Methods

wrap

  • wrap(xml: string | number, attrs?: {}): Wrapper

append

  • append(xml: string | number, attrs?: {}, content?: string): Wrapper
  • Parameters

    • xml: string | number
    • attrs: {} = {}
      • content: string = ''

      Returns Wrapper

    value

    • value(): string

    valueOf

    • valueOf(): string

    toString

    • toString(): string

    Generated using TypeDoc