Issue With Modal on Table Column

Hello, I have an issue with table column, when i add getStateUsing with new HtmlString(), a add wire:click openColumnHsitory with $recordId and $column (as pure string). In my openColumnHistory() method i recieve everything so that is good, but was wondering how to accept data from params on front and to use in modal heading?
public function openColumnHistory ($id, $column): void
{
$this->dispatch('open-modal', id: 'column-history', params: [
'id' => $id,
'column' => $column
]);
}
public function openColumnHistory ($id, $column): void
{
$this->dispatch('open-modal', id: 'column-history', params: [
'id' => $id,
'column' => $column
]);
}
This is my page
<x-filament-panels::page>
{{ $this->table }}

<x-filament::modal id="column-history" slide-over>
<x-slot name="heading">
{{ ucfirst($column ?? '') }} - Column History
</x-slot>
</x-filament::modal>
</x-filament-panels::page>
<x-filament-panels::page>
{{ $this->table }}

<x-filament::modal id="column-history" slide-over>
<x-slot name="heading">
{{ ucfirst($column ?? '') }} - Column History
</x-slot>
</x-filament::modal>
</x-filament-panels::page>
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?