File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
resources/views/docs/desktop/1/the-basics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -428,9 +428,9 @@ Menu::make()
428
428
429
429
## Context Menu
430
430
431
- You may need to add custom native context menu to the elements in the views of your application and override the default one.
431
+ You may wish to add a custom native context menu to the elements in the views of your application and override the default one.
432
432
433
- You can use the ` Native ` JavaScript object provvided by NativePHP's preload script.
433
+ You can use the ` Native ` JavaScript helper provided by NativePHP's preload script.
434
434
435
435
This object exposes the ` contextMenu() ` method which takes an array of objects that matches the
436
436
[ MenuItem] ( https://www.electronjs.org/docs/latest/api/menu-item ) constructor's ` options ` argument.
@@ -448,7 +448,7 @@ Native.contextMenu([
448
448
]);
449
449
```
450
450
451
- You can use the ` contextmenu ` event to capture the user's action and show your menu:
451
+ You can listen for the ` contextmenu ` event to show your custom context menu:
452
452
453
453
``` js
454
454
const element = document .getElementById (' your-element' );
You can’t perform that action at this time.
0 commit comments