Interface RendererOptions<HostNode, HostElement>
Methods
Optional cloneNode
- cloneNode(node: HostNode): HostNode
Parameters
Returns HostNode
createComment
- createComment(text: string): HostNode
Parameters
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
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
Returns null | HostNode
parentNode
- parentNode(node: HostNode): null | HostElement
Parameters
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 unmountChildren: UnmountChildrenFn
Returns void
Optional querySelector
- querySelector(selector: string): null | HostElement
Parameters
Returns null | HostElement
remove
- remove(el: HostNode): void
Parameters
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