Interface RendererOptions<HostNode, HostElement>

interface RendererOptions {
    cloneNode?(node): HostNode;
    createComment(text): HostNode;
    createElement(type, isSVG?, isCustomizedBuiltIn?, vnodeProps?): HostElement;
    createText(text): HostNode;
    insert(el, parent, anchor?): void;
    insertStaticContent?(content, parent, anchor, isSVG, start?, end?): [HostNode, HostNode];
    nextSibling(node): null | HostNode;
    parentNode(node): null | HostElement;
    patchProp(el, key, prevValue, nextValue, isSVG?, prevChildren?, parentComponent?, parentSuspense?, unmountChildren?): void;
    querySelector?(selector): null | HostElement;
    remove(el): void;
    setElementText(node, text): void;
    setScopeId?(el, id): void;
    setText(node, text): void;
}

Type Parameters

Methods

  • Parameters

    • node: HostNode

    Returns HostNode

  • Parameters

    • text: string

    Returns HostNode

  • Parameters

    • type: string
    • Optional isSVG: boolean
    • Optional isCustomizedBuiltIn: string
    • Optional vnodeProps: null | VNodeProps & {
          [key: string]: any;
      }

    Returns HostElement

  • Parameters

    • text: string

    Returns HostNode

  • Parameters

    • el: HostNode
    • parent: HostElement
    • Optional anchor: null | HostNode

    Returns void

  • Parameters

    • content: string
    • parent: HostElement
    • anchor: null | HostNode
    • isSVG: boolean
    • Optional start: null | HostNode
    • Optional end: null | HostNode

    Returns [HostNode, HostNode]

  • Parameters

    • node: HostNode

    Returns null | HostNode

  • Parameters

    • node: HostNode

    Returns null | HostElement

  • Parameters

    • el: HostElement
    • key: string
    • prevValue: any
    • nextValue: any
    • Optional isSVG: boolean
    • Optional prevChildren: VNode<HostNode, HostElement, {
          [key: string]: any;
      }>[]
    • Optional parentComponent: null | ComponentInternalInstance
    • Optional parentSuspense: null | SuspenseBoundary
    • Optional unmountChildren: UnmountChildrenFn

    Returns void

  • Parameters

    • selector: string

    Returns null | HostElement

  • Parameters

    • el: HostNode

    Returns void

  • Parameters

    • node: HostElement
    • text: string

    Returns void

  • Parameters

    • el: HostElement
    • id: string

    Returns void

  • Parameters

    • node: HostNode
    • text: string

    Returns void

Generated using TypeDoc