Package-level declarations

Functions

Link copied to clipboard
fun EventSchemaBuilderScope.ToggleMenu(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, menuId: String)

Flips the open/closed state of the Menu tile identified by menuId — since the tile itself only closes on dismissal, this is how a menu is opened from the server side, and, wired onto a menu item's click, how it is closed after acting on the selection. Does not consume incomingData. Dispatches onSuccess (no data) when the signal reached the tile; onFailure (carrying the thrown exception, logged) when no tile with menuId is currently mounted.