Adding maps for test metadata
Documentation of metadata functions/methods
This commit is contained in:
parent
ce0a72c6ce
commit
96545c618a
16 changed files with 1571 additions and 59 deletions
|
@ -356,5 +356,17 @@ Example :
|
|||
WA.getStartLayerName().then((starLayerName) => {console.log(starLayerName)});
|
||||
```
|
||||
|
||||
### Add a custom menu
|
||||
```
|
||||
registerMenuCommand(commandDescriptor: string, callback: (commandDescriptor: string) => void)
|
||||
```
|
||||
Add a custom menu named "commandDescriptor" in the menu that call the callback when clicked.
|
||||
|
||||
|
||||
Example :
|
||||
```javascript
|
||||
let chatbotEnabled = false
|
||||
WA.registerMenuCommand('help', () => {
|
||||
chatbotEnabled = true;
|
||||
WA.onChatMessage ...
|
||||
});
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue