added callback in example
This commit is contained in:
parent
9643c7adf9
commit
917f3728d5
@ -101,7 +101,9 @@ Displays a message at the bottom of the screen (that will disappear when space b
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```javascript
|
```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(()=>{
|
setTimeout(()=>{
|
||||||
// later
|
// later
|
||||||
triggerMessage.remove();
|
triggerMessage.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user