Skip to content

Commit

Permalink
Fixed #987 - DataTable Column header slot does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Feb 23, 2021
1 parent 98e2c8e commit d51b171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/datatable/HeaderCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:colspan="columnProp('colspan')" :rowspan="columnProp('rowspan')" :aria-sort="ariaSort">
<span class="p-column-resizer" @mousedown="onResizeStart" v-if="resizableColumns"></span>
<div class="p-column-header-content">
<component :is="col.children.header" :column="column" v-if="column.children && column.children.header"/>
<component :is="column.children.header" :column="column" v-if="column.children && column.children.header"/>
<span class="p-column-title" v-if="columnProp('header')">{{columnProp('header')}}</span>
<span v-if="columnProp('sortable')" :class="sortableColumnIcon"></span>
<span v-if="isMultiSorted()" class="p-sortable-column-badge">{{getMultiSortMetaIndex() + 1}}</span>
Expand Down Expand Up @@ -172,7 +172,7 @@ export default {
},
computed: {
containerClass() {
return [this.filterColumn ? this.columnProp('headerClass') : this.columnProp('filterHeaderClass'), this.columnProp('class'), {
return [this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'), this.columnProp('class'), {
'p-sortable-column': this.columnProp('sortable'),
'p-resizable-column': this.resizableColumns,
'p-highlight': this.isColumnSorted(),
Expand Down

0 comments on commit d51b171

Please sign in to comment.