Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/ox_lib/Modules/Interface/Client/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Used for registering a context menu.
- Unique menu identifier, will be used to open the menu.
- title: `string`
- Title display in the menu; has markdown support.
- position?: `'top-left'` or `'top-right'` or `'bottom-left'` or `'bottom-right'`
- Default: `'top-right'`
- menu?: `string`
- Menu identifier - if defined there will be a back arrow next to the menu title that will take you to the menu you defined.
- canClose: `boolean`
Expand Down Expand Up @@ -171,6 +173,7 @@ First we register the menu with our specified options then we call the show func
lib.registerContext({
id = 'some_menu',
title = 'Some context menu',
position = 'top-right',
options = {
{
title = 'Empty button',
Expand Down Expand Up @@ -220,6 +223,7 @@ First we register the menu with our specified options then we call the show func
lib.registerContext({
id: 'some_menu',
title: 'Some context menu',
position: 'top-right',
options: [
{
title: 'Empty button',
Expand Down