Skip to content

Commit

Permalink
Disable rowLink/rowModal/rowSlideover for specific columns
Browse files Browse the repository at this point in the history
  • Loading branch information
J87NL committed Jun 21, 2023
1 parent 6450539 commit b199956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/table/body.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300

@foreach($table->columns() as $column)
<td
@if($table->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 }}"
>
<div class="flex flex-row items-center @if($column->alignment == 'right') justify-end @elseif($column->alignment == 'center') justify-center @else justify-start @endif">
@isset(${'spladeTableCell' . $column->keyHash()})
Expand Down

0 comments on commit b199956

Please sign in to comment.