Skip to content
Merged
Changes from 1 commit
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
Next Next commit
add click event
  • Loading branch information
sietzekeuning authored Mar 21, 2023
commit 7b6d106e9c78f918361f556ae90a66f044842217
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