interface RendererOptions
Methods
cloneNode(node)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
cloneNode?(node: HostNode): HostNode;
createComment(text)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
createComment(text: string): HostNode;
createElement(type, isSVG, isCustomizedBuiltIn, vnodeProps)
Name | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Returns |
|
createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
[key: string]: any;
}) | null): HostElement;
createText(text)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
createText(text: string): HostNode;
insert(el, parent, anchor)
Name | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
Returns |
|
insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;
insertStaticContent(content, parent, anchor, isSVG)
Name | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Returns |
|
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean): [HostNode, HostNode];
nextSibling(node)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
nextSibling(node: HostNode): HostNode | null;
parentNode(node)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
parentNode(node: HostNode): HostElement | null;
patchProp(el, key, prevValue, nextValue, isSVG, prevChildren, parentComponent, parentSuspense, unmountChildren)
Name | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns |
|
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)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
querySelector?(selector: string): HostElement | null;
remove(el)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
remove(el: HostNode): void;
setElementText(node, text)
Name | Type | Description |
---|---|---|
|
|
|
|
|
|
Returns |
|
setElementText(node: HostElement, text: string): void;