add menu canClose

This commit is contained in:
Luke committed 2022-09-22 16:05:49 +02:00
1 parent bc17fe5f70
commit 7e89f69bf4
2 files changed
+4

No files matched your search

+2
View File
@@ -44,6 +44,8 @@ lib.registerMenu(data, cb)
* Default: `'top-left'`
* disableInput?: `boolean`
* Default: `false`
* canClose: `boolean`
* If set to false the user won't be able to exit the menu without pressing one of the buttons.
* onClose: `function`
* Function that runs when the menu is exited via ESC/Backspace.
* onSelected: `function`(selected: `number`: scrollIndex: `number`: args: `any`)