interface RendererOptions

Methods

cloneNode(node)

Parameters
Name Type Description

node

HostNode

Returns

HostNode

Signature
cloneNode?(node: HostNode): HostNode;

createComment(text)

Parameters
Name Type Description

text

string

Returns

HostNode

Signature
createComment(text: string): HostNode;

createElement(type, isSVG, isCustomizedBuiltIn, vnodeProps)

Parameters
Name Type Description

type

string

isSVG

boolean

isCustomizedBuiltIn

string

vnodeProps

(VNodeProps & { [key: string]: any; }) | null

Returns

HostElement

Signature
createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
        [key: string]: any;
    }) | null): HostElement;

createText(text)

Parameters
Name Type Description

text

string

Returns

HostNode

Signature
createText(text: string): HostNode;

insert(el, parent, anchor)

Parameters
Name Type Description

el

HostNode

parent

HostElement

anchor

HostNode | null

Returns

void

Signature
insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;

insertStaticContent(content, parent, anchor, isSVG)

Parameters
Name Type Description

content

string

parent

HostElement

anchor

HostNode | null

isSVG

boolean

Returns

[HostNode, HostNode]

Signature
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean): [HostNode, HostNode];

nextSibling(node)

Parameters
Name Type Description

node

HostNode

Returns

HostNode | null

Signature
nextSibling(node: HostNode): HostNode | null;

parentNode(node)

Parameters
Name Type Description

node

HostNode

Returns

HostElement | null

Signature
parentNode(node: HostNode): HostElement | null;

patchProp(el, key, prevValue, nextValue, isSVG, prevChildren, parentComponent, parentSuspense, unmountChildren)

Parameters
Name Type Description

el

HostElement

key

string

prevValue

any

nextValue

any

isSVG

boolean

prevChildren

VNode<HostNode, HostElement>[]

parentComponent

ComponentInternalInstance | null

parentSuspense

SuspenseBoundary | null

unmountChildren

\~UnmountChildrenFn

Returns

void

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

querySelector(selector)

Parameters
Name Type Description

selector

string

Returns

HostElement | null

Signature
querySelector?(selector: string): HostElement | null;

remove(el)

Parameters
Name Type Description

el

HostNode

Returns

void

Signature
remove(el: HostNode): void;

setElementText(node, text)

Parameters
Name Type Description

node

HostElement

text

string

Returns

void

Signature
setElementText(node: HostElement, text: string): void;

setScopeId(el, id)

Parameters
Name Type Description

el

HostElement

id

string

Returns

void

Signature
setScopeId?(el: HostElement, id: string): void;

setText(node, text)

Parameters
Name Type Description

node

HostNode

text

string

Returns

void

Signature
setText(node: HostNode, text: string): void;