mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
feat(lib/context): onBack (#54)
This commit is contained in:
1 parent
591ab4f439
commit
4af91a9e92
1 file changed
+2
@@ -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`
|
||||
|
||||
Reference in new issue
Block a user