feat(lib/context): onBack (#54)

This commit is contained in:
Sam Shanks authored and GitHub committed 2022-10-11 13:49:34 +02:00
1 parent 591ab4f439
commit 4af91a9e92
1 file changed
+2
+2
View File
@@ -35,6 +35,8 @@ lib.registerContext(context)
* If set to false the user won't be able to exit the menu without pressing one of the buttons.
* onExit?: `function`
* Function that will be ran when the user closes their context menu with ESC.
* onBack?: `function`
* Function that will be ran when the user presses the back button to return to a previous menu.
* options: `table` (`object` or `array`)
* item: `key` (`string`) or `table` (`object`)
* title?: `string`