From b199956992e19457ea2e35861f31521678d4cbd0 Mon Sep 17 00:00:00 2001 From: Johan Montenij Date: Wed, 21 Jun 2023 16:01:44 +0200 Subject: [PATCH] Disable rowLink/rowModal/rowSlideover for specific columns --- resources/views/table/body.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/table/body.blade.php b/resources/views/table/body.blade.php index 97667b3a..73ca4411 100644 --- a/resources/views/table/body.blade.php +++ b/resources/views/table/body.blade.php @@ -25,11 +25,11 @@ class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 @foreach($table->columns() as $column) rowLinks->has($itemKey)) + @if($table->rowLinks->has($itemKey) && $column->clickable) @click="(event) => table.visit(@js($table->rowLinks->get($itemKey)), @js($table->rowLinkType), event)" @endif v-show="table.columnIsVisible(@js($column->key))" - class="whitespace-nowrap text-sm @if($loop->first && $hasBulkActions) pr-6 @else px-6 @endif py-4 @if($column->highlight) text-gray-900 font-medium @else text-gray-500 @endif @if($table->rowLinks->has($itemKey)) cursor-pointer @endif {{ $column->classes }}" + class="whitespace-nowrap text-sm @if($loop->first && $hasBulkActions) pr-6 @else px-6 @endif py-4 @if($column->highlight) text-gray-900 font-medium @else text-gray-500 @endif @if($table->rowLinks->has($itemKey) && $column->clickable) cursor-pointer @endif {{ $column->classes }}" >
@isset(${'spladeTableCell' . $column->keyHash()})