mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
DataTable: new filterButtonProp
property
This commit is contained in:
parent
1cbaf36aa0
commit
a0c3e47afd
6 changed files with 84 additions and 9 deletions
|
@ -86,6 +86,7 @@
|
|||
:filters="d_filters"
|
||||
:filtersStore="filters"
|
||||
:filterDisplay="filterDisplay"
|
||||
:filterButtonProps="headerFilterButtonProps"
|
||||
:filterInputProps="filterInputProps"
|
||||
:first="d_first"
|
||||
@column-click="onColumnHeaderClick($event)"
|
||||
|
@ -2069,6 +2070,17 @@ export default {
|
|||
groupRowSortField() {
|
||||
return this.sortMode === 'single' ? this.sortField : this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null;
|
||||
},
|
||||
headerFilterButtonProps() {
|
||||
return {
|
||||
...{
|
||||
addRule: { severity: 'info', text: true, size: 'small' },
|
||||
removeRule: { severity: 'danger', text: true, size: 'small' },
|
||||
apply: { size: 'small' },
|
||||
clear: { outlined: true, size: 'small' }
|
||||
},
|
||||
...this.filterButtonProps
|
||||
};
|
||||
},
|
||||
virtualScrollerDisabled() {
|
||||
return ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue