Aleksey
wire:navigate on an Action
for tables I had to do it via js
TextColumn::make('organization.full_name')
->label('Organization Name')
->formatStateUsing(function (Document $record) {
$url = route('organizations.show', ['organization' => $record->organization->slug]);
return "<a href="$url" class="dynamic-link text-blue-500 hover:underline">{$record->organization->full_name}</a>";
})
->html();
document.addEventListener('livewire:navigated', () => {
document.querySelectorAll('a.dynamic-link').forEach((link) => {
link.setAttribute('wire:navigate', '');
});
});
11 replies