Skip to content

Commit

Permalink
feat(lib/context): onBack (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamShanks1 authored Oct 11, 2022
1 parent 591ab4f commit 4af91a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ox_lib/Interface/Client/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 4af91a9

Please sign in to comment.