File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class Window
13
13
use HasDimensions;
14
14
use HasUrl;
15
15
16
+ protected bool $ autoHideMenuBar = false ;
17
+
16
18
protected bool $ fullscreen = false ;
17
19
18
20
protected bool $ kiosk = false ;
@@ -184,6 +186,13 @@ public function invisibleFrameless(): self
184
186
->hasShadow (false );
185
187
}
186
188
189
+ public function hideMenu ($ autoHideMenuBar = true ): static
190
+ {
191
+ $ this ->autoHideMenuBar = $ autoHideMenuBar ;
192
+
193
+ return $ this ;
194
+ }
195
+
187
196
public function fullscreen ($ fullscreen = false ): static
188
197
{
189
198
$ this ->fullscreen = $ fullscreen ;
@@ -229,6 +238,7 @@ public function toArray()
229
238
'title ' => $ this ->title ,
230
239
'fullscreen ' => $ this ->fullscreen ,
231
240
'kiosk ' => $ this ->kiosk ,
241
+ 'autoHideMenuBar ' => $ this ->autoHideMenuBar ,
232
242
];
233
243
}
234
244
}
You can’t perform that action at this time.
0 commit comments