F
Filament15mo ago
jouni.i

Filament Section if isCollapsed

How i can show section heading only if section isCollapsed?
1 Reply
Hasnayeen
Hasnayeen15mo ago
Components\Section::make('Content')
->extraAlpineAttributes([
'x-init' => '
$el.querySelector(\'h3\').classList.add(\'hidden\')
$watch(\'isCollapsed\', value => $el.querySelector(\'h3\').classList.toggle(\'hidden\'))',
])
Components\Section::make('Content')
->extraAlpineAttributes([
'x-init' => '
$el.querySelector(\'h3\').classList.add(\'hidden\')
$watch(\'isCollapsed\', value => $el.querySelector(\'h3\').classList.toggle(\'hidden\'))',
])
Want results from more Discord servers?
Add your server