From 5e9fe6c22e83efc596071ebaf9b8e5945715926d Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 13 May 2024 12:46:55 +0300 Subject: [PATCH] TreeTable column header cell content added --- components/lib/treetable/HeaderCell.vue | 16 +++++++++------- components/lib/treetable/style/TreeTableStyle.js | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/components/lib/treetable/HeaderCell.vue b/components/lib/treetable/HeaderCell.vue index 8918be6a5..a53ff4f4d 100644 --- a/components/lib/treetable/HeaderCell.vue +++ b/components/lib/treetable/HeaderCell.vue @@ -13,13 +13,15 @@ :data-p-highlight="isColumnSorted()" :data-p-frozen-column="columnProp('frozen')" > - - - {{ columnProp('header') }} - - - - {{ getMultiSortMetaIndex() + 1 }} +
+ + + {{ columnProp('header') }} + + + + {{ getMultiSortMetaIndex() + 1 }} +
diff --git a/components/lib/treetable/style/TreeTableStyle.js b/components/lib/treetable/style/TreeTableStyle.js index 1288fdc43..0b7b79061 100644 --- a/components/lib/treetable/style/TreeTableStyle.js +++ b/components/lib/treetable/style/TreeTableStyle.js @@ -462,6 +462,7 @@ const classes = { } ], columnResizer: 'p-treetable-column-resizer', + columnHeaderContent: 'p-treetable-column-header-content', columnTitle: 'p-treetable-column-title', sortIcon: 'p-treetable-sort-icon', sortBadge: 'p-treetable-sort-badge',