abstract class Renderer { abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any abstract createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo): any abstract createViewRoot(hostElement: any): any abstract createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo): any abstract createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo): any abstract projectNodes(parentElement: any, nodes: any[]): void abstract attachViewAfter(node: any, viewRootNodes: any[]): void abstract detachView(viewRootNodes: any[]): void abstract destroyView(hostElement: any, viewAllNodes: any[]): void abstract listen(renderElement: any, name: string, callback: Function): Function abstract listenGlobal(target: string, name: string, callback: Function): Function abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void abstract setElementClass(renderElement: any, className: string, isAdd: boolean): void abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): void abstract invokeElementMethod(renderElement: any, methodName: string, args?: any[]): void abstract setText(renderNode: any, text: string): void abstract animate(element: any, startingStyles: any, keyframes: any[], duration: number, delay: number, easing: string, previousPlayers?: any[]): any }方法
|
---|
abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any参数selectorOrNode | Type: string | any . | debugInfo | Type: RenderDebugInfo . 可选. 默认值是 undefined . |
返回值any
|
|
---|
abstract createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo): any参数parentElement | Type: any . | name | Type: string . | debugInfo | Type: RenderDebugInfo . 可选. 默认值是 undefined . |
返回值any
|
|
---|
abstract createViewRoot(hostElement: any): any参数返回值any
|
|
---|
abstract createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo): any参数parentElement | Type: any . | debugInfo | Type: RenderDebugInfo . 可选. 默认值是 undefined . |
返回值any
|
|
---|
abstract createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo): any参数parentElement | Type: any . | value | Type: string . | debugInfo | Type: RenderDebugInfo . 可选. 默认值是 undefined . |
返回值any
|
|
---|
abstract projectNodes(parentElement: any, nodes: any[]): void参数parentElement | Type: any . | nodes | Type: any[] . |
返回值void
|
|
---|
abstract attachViewAfter(node: any, viewRootNodes: any[]): void参数node | Type: any . | viewRootNodes | Type: any[] . |
返回值void
|
|
---|
abstract detachView(viewRootNodes: any[]): void参数viewRootNodes | Type: any[] . |
返回值void
|
|
---|
abstract destroyView(hostElement: any, viewAllNodes: any[]): void参数hostElement | Type: any . | viewAllNodes | Type: any[] . |
返回值void
|
|
---|
abstract listen(renderElement: any, name: string, callback: Function): Function参数renderElement | Type: any . | name | Type: string . | callback | Type: Function . |
返回值Function
|
|
---|
abstract listenGlobal(target: string, name: string, callback: Function): Function参数target | Type: string . | name | Type: string . | callback | Type: Function . |
返回值Function
|
|
---|
abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void参数renderElement | Type: any . | propertyName | Type: string . | propertyValue | Type: any . |
返回值void
|
|
---|
abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void参数renderElement | Type: any . | attributeName | Type: string . | attributeValue | Type: string . |
返回值void
|
|
---|
Used only in debug mode to serialize property changes to dom nodes as attributes. |
abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void参数renderElement | Type: any . | propertyName | Type: string . | propertyValue | Type: string . |
返回值void
|
|
---|
abstract setElementClass(renderElement: any, className: string, isAdd: boolean): void参数renderElement | Type: any . | className | Type: string . | isAdd | Type: boolean . |
返回值void
|
|
---|
abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): void参数renderElement | Type: any . | styleName | Type: string . | styleValue | Type: string . |
返回值void
|
|
---|
abstract invokeElementMethod(renderElement: any, methodName: string, args?: any[]): void参数renderElement | Type: any . | methodName | Type: string . | args | Type: any[] . 可选. 默认值是 undefined . |
返回值void
|
|
---|
abstract setText(renderNode: any, text: string): void参数renderNode | Type: any . | text | Type: string . |
返回值void
|
|
---|
abstract animate(element: any, startingStyles: any, keyframes: any[], duration: number, delay: number, easing: string, previousPlayers?: any[]): any参数element | Type: any . | startingStyles | Type: any . | keyframes | Type: any[] . | duration | Type: number . | delay | Type: number . | easing | Type: string . | previousPlayers | Type: any[] . 可选. 默认值是 undefined . |
返回值any
|