Edit this page

up.layer up.layer.emit(eventType, [props])
JavaScript function

Emits an event on the current layer's element.

This is a shortcut for up.layer.current.emit(). See up.Layer#emit() for more documentation.


Parameters

eventType
required

The event type, e.g. my:event.

string
[props={}]
optional

A list of properties to become part of the event object that will be passed to listeners.

[props.log]
optional

A message to print to the log when the event is emitted.

Pass false to not log this event emission.

stringArray

Return value

The emitted event object.