Files
luos/resources/assets/js/components/vuetable/extends/VtTableRow.vue
Henry Jordan d7722df0ca PMCORE-3102
2021-09-24 17:10:33 +00:00

33 lines
836 B
Vue

<template>
<tr
:class="`VueTables__row ${props.rowAttrs.class}`"
v-bind="props.rowAttrs.attrs"
@contextmenu.prevent.stop="props.rowEvents.click"
@click="props.rowEvents.click"
>
<vt-child-row-toggler
:row-id="props.rowId"
v-if="props.childRowTogglerFirst"
/>
<vt-table-cell
v-for="(column, i) in props.columns"
:key="i"
:column="column"
/>
<vt-child-row-toggler
:row-id="props.rowId"
v-if="props.childRowTogglerLast"
/>
</tr>
</template>
<script>
import VtTableCell from "vue-tables-2/compiled/components/VtTableCell";
import VtChildRowToggler from "vue-tables-2/compiled/components/VtChildRowToggler";
export default {
name: "MyTableRow",
props: ["props"],
components: { VtTableCell, VtChildRowToggler },
};
</script>
<style scoped>
</style>