Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NativeScriptRenderer

Hierarchy

  • Renderer2

Index

Constructors

constructor

Properties

data

data: object

Type declaration

  • [key: string]: any

destroyNode

destroyNode: function | null

If null or undefined, the view engine won't call it. This is used as a performance optimization for production mode.

Private rootView

rootView: NgView

Private viewUtil

viewUtil: ViewUtil

Private zone

zone: NgZone

Methods

addClass

  • addClass(view: NgView, name: string): void
  • Parameters

    Returns void

appendChild

createComment

createElement

  • createElement(name: any, _namespace: string): NgView
  • Parameters

    • name: any
    • _namespace: string

    Returns NgView

createText

createViewRoot

destroy

  • destroy(): void

insertBefore

invokeElementMethod

  • invokeElementMethod(_renderElement: NgView, methodName: string, args: Array<any>): void
  • Parameters

    • _renderElement: NgView
    • methodName: string
    • args: Array<any>

    Returns void

listen

  • listen(renderElement: any, eventName: string, callback: function): function
  • Parameters

    • renderElement: any
    • eventName: string
    • callback: function
        • (event: any): boolean
        • Parameters

          • event: any

          Returns boolean

    Returns function

      • (): void
      • Returns void

nextSibling

parentNode

  • parentNode(node: NgView): any

projectNodes

  • projectNodes(parentElement: NgView, nodes: NgView[]): void

removeAttribute

  • removeAttribute(_el: NgView, _name: string): void
  • Parameters

    Returns void

removeChild

  • removeChild(parent: any, oldChild: NgView): void
  • Parameters

    • parent: any
    • oldChild: NgView

    Returns void

removeClass

  • removeClass(view: NgView, name: string): void
  • Parameters

    Returns void

removeStyle

  • removeStyle(view: NgView, styleName: string, _flags?: RendererStyleFlags2): void
  • Parameters

    • view: NgView
    • styleName: string
    • Optional _flags: RendererStyleFlags2

    Returns void

selectRootElement

  • selectRootElement(selector: string): NgView
  • Parameters

    • selector: string

    Returns NgView

setAttribute

  • setAttribute(view: NgView, name: string, value: string, namespace?: string): void
  • Parameters

    • view: NgView
    • name: string
    • value: string
    • Optional namespace: string

    Returns void

setBindingDebugInfo

  • setBindingDebugInfo(renderElement: NgView, propertyName: string, propertyValue: string): void
  • Parameters

    • renderElement: NgView
    • propertyName: string
    • propertyValue: string

    Returns void

setElementDebugInfo

  • setElementDebugInfo(renderElement: any, _info: any): void
  • Parameters

    • renderElement: any
    • _info: any

    Returns void

setProperty

  • setProperty(view: any, name: string, value: any): void
  • Parameters

    • view: any
    • name: string
    • value: any

    Returns void

setStyle

  • setStyle(view: NgView, styleName: string, value: any, _flags?: RendererStyleFlags2): void
  • Parameters

    • view: NgView
    • styleName: string
    • value: any
    • Optional _flags: RendererStyleFlags2

    Returns void

setValue

  • setValue(_renderNode: any, _value: string): void
  • Parameters

    • _renderNode: any
    • _value: string

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method