Skip to content

Commit 99e9b7f

Browse files
authored
Add fullscreenable support
1 parent 047c774 commit 99e9b7f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Windows/Window.php

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class Window
1717

1818
protected bool $fullscreen = false;
1919

20+
protected bool $fullscreenable = true;
21+
2022
protected bool $kiosk = false;
2123

2224
protected $rememberState = false;
@@ -209,6 +211,13 @@ public function fullscreen($fullscreen = false): static
209211
return $this;
210212
}
211213

214+
public function fullscreenable($fullscreenable = true): static
215+
{
216+
$this->fullscreenable = $fullscreenable;
217+
218+
return $this;
219+
}
220+
212221
public function kiosk($kiosk = false): static
213222
{
214223
$this->kiosk = $kiosk;
@@ -247,6 +256,7 @@ public function toArray()
247256
'closable' => $this->closable,
248257
'title' => $this->title,
249258
'fullscreen' => $this->fullscreen,
259+
'fullscreenable' => $this->fullscreenable,
250260
'kiosk' => $this->kiosk,
251261
'autoHideMenuBar' => $this->autoHideMenuBar,
252262
];

0 commit comments

Comments
 (0)