Edit this page

up.Layer up.Layer.prototype.context

This feature is experimental. It may be changed or removed in a future version.

This layer's context.


You may access the context properties like a regular JavaScript object.

let layer = up.layer.current
layer.context.message = 'Please select a contact'
console.log(layer.context) // logs "{ message: 'Please select a contact' }"


context Object

The context object. If no context has been set an empty object is returned.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more