Skip to content

Commit 1f0d7ea

Browse files
authored
feat(ox_lib) ContextMenu positions (#45)
1 parent 340c440 commit 1f0d7ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/ox_lib/Modules/Interface/Client/context.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Used for registering a context menu.
3131
- Unique menu identifier, will be used to open the menu.
3232
- title: `string`
3333
- Title display in the menu; has markdown support.
34+
- position?: `'top-left'` or `'top-right'` or `'bottom-left'` or `'bottom-right'`
35+
- Default: `'top-right'`
3436
- menu?: `string`
3537
- Menu identifier - if defined there will be a back arrow next to the menu title that will take you to the menu you defined.
3638
- canClose: `boolean`
@@ -171,6 +173,7 @@ First we register the menu with our specified options then we call the show func
171173
lib.registerContext({
172174
id = 'some_menu',
173175
title = 'Some context menu',
176+
position = 'top-right',
174177
options = {
175178
{
176179
title = 'Empty button',
@@ -220,6 +223,7 @@ First we register the menu with our specified options then we call the show func
220223
lib.registerContext({
221224
id: 'some_menu',
222225
title: 'Some context menu',
226+
position: 'top-right',
223227
options: [
224228
{
225229
title: 'Empty button',

0 commit comments

Comments
 (0)