Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ui/core/view"

Index

Functions

PseudoClassHandler

  • PseudoClassHandler(...pseudoClasses: string[]): MethodDecorator
  • Parameters

    • Rest ...pseudoClasses: string[]

    Returns MethodDecorator

eachDescendant

  • eachDescendant(view: View, callback: function): any
  • Iterates through all child views (via visual tree) and executes a function.

    Parameters

    • view: View

      Starting view (parent container).

    • callback: function

      A function to execute on every child. If function returns false it breaks the iteration.

        • (child: View): boolean
        • Parameters

          Returns boolean

    Returns any

getAncestor

  • getAncestor(view: View, criterion: string | Function): View
  • Gets an ancestor from a given type.

    Parameters

    • view: View

      Starting view (child view).

    • criterion: string | Function

      The type of ancestor view we are looking for. Could be a string containing a class name or an actual type. Returns an instance of a view (if found), otherwise undefined.

    Returns View

getViewById

  • getViewById(view: View, id: string): View
  • Gets a child view by id.

    Parameters

    • view: View

      The parent (container) view of the view to look for.

    • id: string

      The id of the view to look for. Returns an instance of a view (if found), otherwise undefined.

    Returns View

isEventOrGesture

  • isEventOrGesture(name: string, view: View): boolean

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