File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Native \Laravel \Facades ;
4
4
5
5
use Illuminate \Support \Facades \Facade ;
6
+ use Native \Laravel \Menu \Menu ;
6
7
7
8
/**
8
9
* @method static \Native\Laravel\MenuBar\PendingCreateMenuBar create()
9
10
* @method static void show()
10
11
* @method static void hide()
11
12
* @method static void label(string $label)
13
+ * @method static void contextMenu(Menu $contextMenu)
12
14
*/
13
15
class MenuBar extends Facade
14
16
{
Original file line number Diff line number Diff line change 3
3
namespace Native \Laravel \MenuBar ;
4
4
5
5
use Native \Laravel \Client \Client ;
6
+ use Native \Laravel \Menu \Menu ;
6
7
7
8
class MenuBarManager
8
9
{
@@ -32,4 +33,11 @@ public function label(string $label)
32
33
'label ' => $ label ,
33
34
]);
34
35
}
36
+
37
+ public function contextMenu (Menu $ contextMenu )
38
+ {
39
+ $ this ->client ->post ('menu-bar/context-menu ' , [
40
+ 'contextMenu ' => $ contextMenu ->toArray ()['submenu ' ],
41
+ ]);
42
+ }
35
43
}
You can’t perform that action at this time.
0 commit comments