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 @@ -13,6 +13,8 @@ class Window
1313 use HasDimensions;
1414 use HasUrl;
1515
16+ protected bool $ autoHideMenuBar = false ;
17+
1618 protected bool $ fullscreen = false ;
1719
1820 protected bool $ kiosk = false ;
@@ -184,6 +186,13 @@ public function invisibleFrameless(): self
184186 ->hasShadow (false );
185187 }
186188
189+ public function hideMenu ($ autoHideMenuBar = true ): static
190+ {
191+ $ this ->autoHideMenuBar = $ autoHideMenuBar ;
192+
193+ return $ this ;
194+ }
195+
187196 public function fullscreen ($ fullscreen = false ): static
188197 {
189198 $ this ->fullscreen = $ fullscreen ;
@@ -229,6 +238,7 @@ public function toArray()
229238 'title ' => $ this ->title ,
230239 'fullscreen ' => $ this ->fullscreen ,
231240 'kiosk ' => $ this ->kiosk ,
241+ 'autoHideMenuBar ' => $ this ->autoHideMenuBar ,
232242 ];
233243 }
234244}
You can’t perform that action at this time.
0 commit comments