Docs (4.0.0)
class TestOutputElement property

sendPlatformEvent

Handles the specified (simulated) platform event.

sendPlatformEvent: (name: TestOutputElement.PlatformEvent, data?: any) => this

Notes

  • Event names are based on DOM events, but the data object isn’t DOM specific.
  • This method is overridden by the renderer for the specific component type.

Parameters

  • _name — The event name, e.g. click
  • _data — Arbitrary event data

Related