We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e147d0 commit b2a1d7cCopy full SHA for b2a1d7c
src/View/Components/MenuSub.php
@@ -16,14 +16,15 @@ public function __construct(
16
public ?string $icon = null,
17
public ?string $iconClasses = null,
18
public bool $open = false,
19
- public ?bool $enabled = true,
+ public ?bool $hidden = false,
20
+ public ?bool $disabled = false,
21
) {
22
$this->uuid = "mary" . md5(serialize($this)) . $id;
23
}
24
25
public function render(): View|Closure|string
26
{
- if ($this->enabled === false) {
27
+ if ($this->hidden === true) {
28
return '';
29
30
@@ -35,6 +36,7 @@ public function render(): View|Closure|string
35
36
@endphp
37
38
<li
39
+ @class(['menu-disabled' => $disabled])
40
x-data="
41
42
show: @if($submenuActive || $open) true @else false @endif,
0 commit comments