Edit this page

up.Layer up.Layer.prototype.element
Property

This layer's outmost element.

Example

let rootLayer = up.layer.root
let overlay = await up.layer.open()

rootLayer.element // returns <body>
overlay.element   // returns <up-modal>

Value

element Element