File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
pages/ox_lib/Modules/Interface/Client Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments