Skip to content

Commit

Permalink
Refactor primefaces#4024 - For DataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu authored and thielpa committed Jun 7, 2023
1 parent 4e1bbb4 commit 5a328a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/lib/datatable/DataTable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export interface DataTablePassThroughOptions {
/**
* Uses to pass attributes to the rowgroup header's DOM element.
*/
rowgroupHeader?: DataTablePassThroughOptionType;
rowGroupHeader?: DataTablePassThroughOptionType;
/**
* Uses to pass attributes to the body row's DOM element.
*/
Expand All @@ -609,7 +609,7 @@ export interface DataTablePassThroughOptions {
/**
* Uses to pass attributes to the rowgroup footer's DOM element.
*/
rowgroupFooter?: DataTablePassThroughOptionType;
rowGroupFooter?: DataTablePassThroughOptionType;
/**
* Uses to pass attributes to the empty message's DOM element.
*/
Expand Down
8 changes: 4 additions & 4 deletions components/lib/datatable/TableBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<tr
v-if="templates['groupheader'] && rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(index))"
:key="getRowKey(rowData, getRowIndex(index)) + '_subheader'"
:class="cx('rowgroupHeader')"
:class="cx('rowGroupHeader')"
:style="rowGroupHeaderStyle"
role="row"
v-bind="ptm('rowgroupHeader')"
v-bind="ptm('rowGroupHeader')"
>
<td :colspan="columnsLength - 1" v-bind="{ ...getColumnPT('root'), ...getColumnPT('bodyCell') }">
<button v-if="expandableRowGroups" :class="cx('rowGroupToggler')" @click="onRowGroupToggle($event, rowData)" type="button" v-bind="getColumnPT('rowGroupToggler')">
Expand Down Expand Up @@ -98,9 +98,9 @@
<tr
v-if="templates['groupfooter'] && rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(index))"
:key="getRowKey(rowData, getRowIndex(index)) + '_subfooter'"
:class="cx('rowgroupFooter')"
:class="cx('rowGroupFooter')"
role="row"
v-bind="ptm('rowgroupFooter')"
v-bind="ptm('rowGroupFooter')"
>
<td :colspan="columnsLength - 1" v-bind="{ ...getColumnPT('root'), ...getColumnPT('bodyCell') }">
<component :is="templates['groupfooter']" :data="rowData" :index="getRowIndex(index)" />
Expand Down

0 comments on commit 5a328a1

Please sign in to comment.