Edit this page

up.Layer up.Layer.prototype.descendants
Property

Returns an array of this layer's descendant layers, with the closest descendants listed first.

Descendant layers are all layers that visually overlay this layer.

The array elements are ordered by distance to this layer. The first element is this layer's direct child. The last element is the frontmost layer.

Example

up.layer.open()
up.layer.current              // returns up.Layer.Modal
up.layer.current.descendants  // returns []
up.layer.root.descendants     // returns [up.Layer.Modal]

Return value

descendants This layer's descendants.