From 697e7f4bd023904893110c6c6187d4965d7694a8 Mon Sep 17 00:00:00 2001 From: Patrick Weh <40495041+patrickweh@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:03:03 +0200 Subject: [PATCH] wip --- .../views/components/layouts/table.blade.php | 17 +++++++++--- resources/views/components/options.blade.php | 1 + resources/views/livewire/data-table.blade.php | 3 +++ src/DataTable.php | 27 ++++++++++++++++++- src/Livewire/Options.php | 3 +++ 5 files changed, 47 insertions(+), 4 deletions(-) diff --git a/resources/views/components/layouts/table.blade.php b/resources/views/components/layouts/table.blade.php index 1903b15..ef4df9d 100644 --- a/resources/views/components/layouts/table.blade.php +++ b/resources/views/components/layouts/table.blade.php @@ -194,6 +194,7 @@ class="h-24 w-24 m-auto" x-bind:data-id="record.id" x-bind:key="record.id" x-on:click="$dispatch('data-table-row-clicked', record)" + x-bind:class="record.deleted_at ? 'opacity-50' : ''" {{ $rowAttributes->merge(['class' => 'hover:bg-gray-100 dark:hover:bg-secondary-900']) }} > @if($isSelectable) @@ -218,13 +219,13 @@ class="h-24 w-24 m-auto" x-bind:style="stickyCols.includes(col) && 'z-index: 2'" class="cursor-pointer" x-bind:href="record?.href ?? false"> -