up.Layer.prototype.context
Property
This feature is experimental. Please share your experiences so we know what to keep or change.
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
The context object.
If no context has been set an empty object is returned.
Type: Object