dojox/mobile/viewRegistry (version 1.10)

Summary

A registry of existing views.

See the dojox/mobile/viewRegistry reference documentation for more information.

Property Summary

Method Summary

  • add(view) Adds a view to the registry.
  • getChildViews(parent) Gets the children views of the specified view.
  • getEnclosingScrollable(node) Gets the dojox/mobile/scrollable object containing the specified DOM node.
  • getEnclosingView(node) Gets the view containing the specified DOM node.
  • getParentView(view) Gets the parent view of the specified view.
  • getViews() Gets all registered views.
  • remove(id) Removes a view from the registry.

Properties

hash

The object used to register views.

initialView
length

The number of registered views.

Methods

add(view)

Adds a view to the registry.

Parameter Type Description
view dojox/mobile/View
getChildViews(parent)

Gets the children views of the specified view.

Parameter Type Description
parent dojox/mobile/View
Returns:Array | undefined
getEnclosingScrollable(node)

Gets the dojox/mobile/scrollable object containing the specified DOM node.

Parameter Type Description
node DomNode
Returns:dojox/mobile/scrollable | undefined | null
getEnclosingView(node)

Gets the view containing the specified DOM node.

Parameter Type Description
node DomNode
Returns:dojox/mobile/View | undefined | null
getParentView(view)

Gets the parent view of the specified view.

Parameter Type Description
view dojox/mobile/View
Returns:dojox/mobile/View | undefined | null
getViews()

Gets all registered views.

Returns:Array
remove(id)

Removes a view from the registry.

Parameter Type Description
id String
Error in the documentation? Can’t find what you are looking for? Let us know!