From 917f3728d559f96898e750e809df12daed9642b6 Mon Sep 17 00:00:00 2001 From: jonny Date: Mon, 28 Jun 2021 11:17:22 +0200 Subject: [PATCH] added callback in example --- docs/maps/api-ui.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/maps/api-ui.md b/docs/maps/api-ui.md index fda7742d..db35f5b8 100644 --- a/docs/maps/api-ui.md +++ b/docs/maps/api-ui.md @@ -101,7 +101,9 @@ Displays a message at the bottom of the screen (that will disappear when space b Example: ```javascript -const triggerMessage = WA.ui.triggerMessage("press 'space' to confirm"); +const triggerMessage = WA.ui.triggerMessage("press 'space' to confirm",()=>{ + WA.chat.sendChatMessage("confirmed", "trigger message logic") +}); setTimeout(()=>{ // later triggerMessage.remove();