TogglePopup

fun EventSchemaBuilderScope.TogglePopup(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, popupId: String)

Flips the open/closed state of the Popup tile identified by popupId — since the tile itself only closes on dismissal, this is how a popup is opened from the server side. Does not consume incomingData. Dispatches onSuccess (no data) when the signal reached the tile; onFailure (carrying the thrown exception, logged) when no tile with popupId is currently mounted.

Parameters

id

Unique identifier of this event. Defaults to a random id.

trigger

Trigger that fires this event, built via EventTriggers.

events

Child events chained after this one, wired to its triggers (onSuccess, onFailure).

popupId

Id of the Popup tile to toggle.