Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion js/Components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
'hover:bg-gray-100': striped,
'hover:bg-gray-50': !striped
}"
@click="rowClick(item, key)"
>
<td
v-for="column in queryBuilderProps.columns"
Expand Down Expand Up @@ -291,6 +292,8 @@ const props = defineProps({
}
});

const emit = defineEmits(["rowClick"]);

provide("activeClasses", props.activeClasses);

const app = getCurrentInstance();
Expand Down Expand Up @@ -387,7 +390,9 @@ const hasData = computed(() => {
return false;
});

//
function rowClick(item, key) {
emit("rowClick", item, key);
}

function disableSearchInput(key) {
forcedVisibleSearchInputs.value = forcedVisibleSearchInputs.value.filter((search) => search != key);
Expand Down
2 changes: 1 addition & 1 deletion js/Components/TableActiveFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
clip-rule="evenodd"
/>
</svg>
<span class="text-gray-400 ml-1">{{ numFilters }} active <span v-text="numFilters === 1 ? 'filter' : 'filters'"></span>:</span>
<span class="text-gray-400 ml-1">{{ numFilters }} active <span v-text="numFilters === 1 ? 'filter' : 'filters'" />:</span>
</div>

<button
Expand Down
2 changes: 1 addition & 1 deletion php/InertiaTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Inertia\Response;
use Illuminate\Support\Traits\Conditionable;
use Inertia\Response;

class InertiaTable
{
Expand Down