Renderer
class
deprecated
Deprecated: Use the Renderer2
instead.
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 }
Methods
selectRootElement() | ||||
---|---|---|---|---|
|
selectorOrNode | Type: |
debugInfo | Type: Optional. Default is |
Returns
any
createElement() | ||||||
---|---|---|---|---|---|---|
|
parentElement | Type: |
name | Type: |
debugInfo | Type: Optional. Default is |
Returns
any
createViewRoot() | ||
---|---|---|
|
hostElement | Type: |
Returns
any
createTemplateAnchor() | ||||
---|---|---|---|---|
|
parentElement | Type: |
debugInfo | Type: Optional. Default is |
Returns
any
createText() | ||||||
---|---|---|---|---|---|---|
|
parentElement | Type: |
value | Type: |
debugInfo | Type: Optional. Default is |
Returns
any
projectNodes() | ||||
---|---|---|---|---|
|
parentElement | Type: |
nodes | Type: |
Returns
void
attachViewAfter() | ||||
---|---|---|---|---|
|
node | Type: |
viewRootNodes | Type: |
Returns
void
detachView() | ||
---|---|---|
|
viewRootNodes | Type: |
Returns
void
destroyView() | ||||
---|---|---|---|---|
|
hostElement | Type: |
viewAllNodes | Type: |
Returns
void
listen() | ||||||
---|---|---|---|---|---|---|
|
renderElement | Type: |
name | Type: |
callback | Type: |
Returns
Function
listenGlobal() | ||||||
---|---|---|---|---|---|---|
|
target | Type: |
name | Type: |
callback | Type: |
Returns
Function
setElementProperty() | ||||||
---|---|---|---|---|---|---|
|
renderElement | Type: |
propertyName | Type: |
propertyValue | Type: |
Returns
void
setElementAttribute() | ||||||
---|---|---|---|---|---|---|
|
renderElement | Type: |
attributeName | Type: |
attributeValue | Type: |
Returns
void
setBindingDebugInfo() | ||||||
---|---|---|---|---|---|---|
Used only in debug mode to serialize property changes to dom nodes as attributes. | ||||||
|
renderElement | Type: |
propertyName | Type: |
propertyValue | Type: |
Returns
void
setElementClass() | ||||||
---|---|---|---|---|---|---|
|
renderElement | Type: |
className | Type: |
isAdd | Type: |
Returns
void
setElementStyle() | ||||||
---|---|---|---|---|---|---|
|
renderElement | Type: |
styleName | Type: |
styleValue | Type: |
Returns
void
invokeElementMethod() | ||||||
---|---|---|---|---|---|---|
|
renderElement | Type: |
methodName | Type: |
args | Type: Optional. Default is |
Returns
void
setText() | ||||
---|---|---|---|---|
|
renderNode | Type: |
text | Type: |
Returns
void
animate() | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
element | Type: |
startingStyles | Type: |
keyframes | Type: |
duration | Type: |
delay | Type: |
easing | Type: |
previousPlayers | Type: Optional. Default is |
Returns
any
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/Renderer