From 4456c3e8fb9c6476fa34b8c43b1dc03979d45ea0 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 23 Jul 2024 16:50:25 +0200 Subject: [PATCH] added disable-filtering option --- public/plugins/vue/tt-components/tt-table.js | 23 ++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index 2aebd6873..25c82c5ed 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -149,21 +149,21 @@ Vue.component('tt-table', { (column.filter === 'dateRange' ? 'min-width: 260px;' : '') + (originalColumnWidths[column.key] ? 'width: ' + originalColumnWidths[column.key] + 'px;' : '')" > -
+ @click="column.sortable && !disableFiltering ? setOrder(column.key) : undefined"> {{ column.text }} -
- - - - - - + + + + + + @@ -264,7 +264,8 @@ Vue.component('tt-table', { excelExport: {type: Boolean, default: false}, config: {type: Object, default: () => ({}), required: true}, ssr: {type: Boolean, default: false}, - disableInitialFetch: {type: Boolean, default: false} + disableInitialFetch: {type: Boolean, default: false}, + disableFiltering: {type: Boolean, default: false} }, data() { return { window: window,