Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RendererOptions<HostNode, HostElement>

Type parameters

Hierarchy

  • RendererOptions

Index

Methods

Optional cloneNode

  • cloneNode(node: HostNode): HostNode
  • Parameters

    • node: HostNode

    Returns HostNode

createComment

  • createComment(text: string): HostNode
  • Parameters

    • text: string

    Returns HostNode

createElement

  • createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string, vnodeProps?: null | (VNodeProps & {})): HostElement
  • Parameters

    • type: string
    • Optional isSVG: boolean
    • Optional isCustomizedBuiltIn: string
    • Optional vnodeProps: null | (VNodeProps & {})

    Returns HostElement

createText

  • createText(text: string): HostNode
  • Parameters

    • text: string

    Returns HostNode

insert

  • insert(el: HostNode, parent: HostElement, anchor?: null | HostNode): void
  • Parameters

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

    Returns void

Optional insertStaticContent

  • insertStaticContent(content: string, parent: HostElement, anchor: null | HostNode, isSVG: boolean): [HostNode, HostNode]
  • Parameters

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

    Returns [HostNode, HostNode]

nextSibling

  • nextSibling(node: HostNode): null | HostNode
  • Parameters

    • node: HostNode

    Returns null | HostNode

parentNode

  • parentNode(node: HostNode): null | HostElement
  • Parameters

    • node: HostNode

    Returns null | HostElement

patchProp

  • patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, isSVG?: boolean, prevChildren?: VNode<HostNode, HostElement, {}>[], parentComponent?: null | ComponentInternalInstance, parentSuspense?: null | SuspenseBoundary, unmountChildren?: UnmountChildrenFn): void
  • Parameters

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

    Returns void

Optional querySelector

  • querySelector(selector: string): null | HostElement
  • Parameters

    • selector: string

    Returns null | HostElement

remove

  • remove(el: HostNode): void
  • Parameters

    • el: HostNode

    Returns void

setElementText

  • setElementText(node: HostElement, text: string): void
  • Parameters

    • node: HostElement
    • text: string

    Returns void

Optional setScopeId

  • setScopeId(el: HostElement, id: string): void
  • Parameters

    • el: HostElement
    • id: string

    Returns void

setText

  • setText(node: HostNode, text: string): void
  • Parameters

    • node: HostNode
    • text: string

    Returns void

Generated using TypeDoc