From f090cea9a8d62623095cac4795e07d8676a78e14 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 23 Jul 2024 17:15:13 +0200 Subject: [PATCH] added headerClass property to tt-table --- public/plugins/vue/tt-components/tt-table.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index 25c82c5ed..7e6bfe15a 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -15,6 +15,7 @@ * For 'iconSelect', an additional 'icon' property (CSS class for the icon) is required. * @property {boolean} [sortable=true] - (Optional) Indicates whether the column is sortable. Default is true. * @property {string} [class] - (Optional) Additional CSS classes to apply to the column. + * @property {string} [headerClass] - (Optional) Additional CSS classes to apply to the column header. * @property {string} [suffix] - (Optional) Additional CSS classes to apply to the column. * @property {string} [prefix] - (Optional) Additional CSS classes to apply to the column. * */ @@ -144,13 +145,13 @@ Vue.component('tt-table', {
{{ column.text }} @@ -596,6 +597,7 @@ Vue.component('tt-table', { filterOptions: column.filterOptions || undefined, sortable: column.sortable !== undefined ? column.sortable : true, class: column.class !== undefined ? column.class : '', + headerClass: column.headerClass || false, prefix: column.prefix || '', suffix: column.suffix || '', priority: column.priority + 100 || i--