Edit this page

up.Layer up.Layer.prototype.context
Property

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

This layer's context.

Example

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' }"

Value

context Object

The context object.

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