File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class MenuBar
20
20
21
21
protected string $ label = '' ;
22
22
23
+ protected string $ tooltip = '' ;
24
+
23
25
protected bool $ onlyShowContextMenu = false ;
24
26
25
27
protected ?Menu $ contextMenu = null ;
@@ -70,6 +72,13 @@ public function label(string $label = ''): self
70
72
return $ this ;
71
73
}
72
74
75
+ public function tooltip (string $ tooltip = '' ): self
76
+ {
77
+ $ this ->tooltip = $ tooltip ;
78
+
79
+ return $ this ;
80
+ }
81
+
73
82
public function alwaysOnTop ($ alwaysOnTop = true ): self
74
83
{
75
84
$ this ->alwaysOnTop = $ alwaysOnTop ;
@@ -93,6 +102,7 @@ public function toArray(): array
93
102
'x ' => $ this ->x ,
94
103
'y ' => $ this ->y ,
95
104
'label ' => $ this ->label ,
105
+ 'tooltip ' => $ this ->tooltip ,
96
106
'width ' => $ this ->width ,
97
107
'height ' => $ this ->height ,
98
108
'vibrancy ' => $ this ->vibrancy ,
You can’t perform that action at this time.
0 commit comments