-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathHasMaxContentWidth.php
More file actions
37 lines (27 loc) · 921 Bytes
/
HasMaxContentWidth.php
File metadata and controls
37 lines (27 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace Filament\Panel\Concerns;
use Closure;
use Filament\Support\Enums\Width;
trait HasMaxContentWidth
{
protected Width | string | Closure | null $maxContentWidth = null;
protected Width | string | Closure | null $simplePageMaxContentWidth = null;
public function maxContentWidth(Width | string | Closure | null $maxContentWidth): static
{
$this->maxContentWidth = $maxContentWidth;
return $this;
}
public function getMaxContentWidth(): Width | string | null
{
return $this->evaluate($this->maxContentWidth);
}
public function simplePageMaxContentWidth(Width | string | Closure | null $width): static
{
$this->simplePageMaxContentWidth = $width;
return $this;
}
public function getSimplePageMaxContentWidth(): Width | string | null
{
return $this->evaluate($this->simplePageMaxContentWidth);
}
}