mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3921 - DataTable and TreeTable: new Paginator dropdown icon slots
This commit is contained in:
parent
1b300b54f0
commit
43faf8704d
8 changed files with 100 additions and 4 deletions
20
components/lib/datatable/DataTable.d.ts
vendored
20
components/lib/datatable/DataTable.d.ts
vendored
|
@ -1224,6 +1224,26 @@ export interface DataTableSlots {
|
|||
* Custom paginator last page link icon template.
|
||||
*/
|
||||
paginatorlastpagelinkicon(): VNode[];
|
||||
/**
|
||||
* Custom paginatorrowsperpagedropdownicon template.
|
||||
* @param {Object} scope - paginator rowsperpagedropdownicon's params.
|
||||
*/
|
||||
paginatorrowsperpagedropdownicon(scope: {
|
||||
/**
|
||||
* Style class of the paginator rowsperpagedropdown icon.
|
||||
*/
|
||||
class: string;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom paginatorjumptopagedropdownicon template.
|
||||
* @param {Object} scope - paginator jumptopagedropdownicon's params.
|
||||
*/
|
||||
paginatorjumptopagedropdownicon(scope: {
|
||||
/**
|
||||
* Style class of the paginator jumptopagedropdown icon.
|
||||
*/
|
||||
class: string;
|
||||
}): VNode[];
|
||||
}
|
||||
/**
|
||||
* Defines valid emits in Datatable component.
|
||||
|
|
|
@ -45,6 +45,12 @@
|
|||
<template v-if="$slots.paginatorlastpagelinkicon" #lastpagelinkicon>
|
||||
<slot name="paginatorlastpagelinkicon"></slot>
|
||||
</template>
|
||||
<template v-if="$slots.paginatorjumptopagedropdownicon" #jumptopagedropdownicon>
|
||||
<slot name="paginatorjumptopagedropdownicon"></slot>
|
||||
</template>
|
||||
<template v-if="$slots.paginatorrowsperpagedropdownicon" #rowsperpagedropdownicon="slotProps">
|
||||
<slot name="paginatorrowsperpagedropdownicon" :class="slotProps.class"></slot>
|
||||
</template>
|
||||
</DTPaginator>
|
||||
<div :class="cx('wrapper')" :style="[sx('wrapper'), { maxHeight: virtualScrollerDisabled ? scrollHeight : '' }]" v-bind="ptm('wrapper')">
|
||||
<DTVirtualScroller
|
||||
|
@ -257,6 +263,12 @@
|
|||
<template v-if="$slots.paginatorlastpagelinkicon" #lastpagelinkicon>
|
||||
<slot name="paginatorlastpagelinkicon"></slot>
|
||||
</template>
|
||||
<template v-if="$slots.paginatorjumptopagedropdownicon" #jumptopagedropdownicon="slotProps">
|
||||
<slot name="paginatorjumptopagedropdownicon" :class="slotProps.class"></slot>
|
||||
</template>
|
||||
<template v-if="$slots.paginatorrowsperpagedropdownicon" #rowsperpagedropdownicon="slotProps">
|
||||
<slot name="paginatorrowsperpagedropdownicon" :class="slotProps.class"></slot>
|
||||
</template>
|
||||
</DTPaginator>
|
||||
<div ref="resizeHelper" :class="cx('resizeHelper')" style="display: none" v-bind="ptm('resizeHelper')"></div>
|
||||
<span v-if="reorderableColumns" ref="reorderIndicatorUp" :class="cx('reorderIndicatorUp')" style="position: absolute; display: none" v-bind="ptm('reorderIndicatorUp')">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue