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