Skip to content

Commit

Permalink
Merge pull request #241 from yvesh/contextclick
Browse files Browse the repository at this point in the history
Add a contextmenu (right click) emit
  • Loading branch information
HC200ok authored Mar 9, 2023
2 parents ef4ff45 + 32e063a commit 08749be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
clickRowToExpand && updateExpandingItemIndexList(index + prevPageEndIndex, item, $event);
}"
@dblclick="($event) => {clickRow(item, 'double', $event)}"
@contextmenu.prevent="($event) => {emits('contextmenuRow', item, $event)}"
>
<td
v-for="(column, i) in headerColumns"
Expand Down Expand Up @@ -390,6 +391,7 @@ onMounted(() => {
const emits = defineEmits([
'clickRow',
'contextmenuRow',
'selectRow',
'deselectRow',
'expandRow',
Expand Down

0 comments on commit 08749be

Please sign in to comment.