From 694bfbfba5109c5b0c27b6179d0c2a3ecd3b965d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 14 Apr 2023 17:58:51 +0300 Subject: [PATCH] Refactor #3832 Refactor #3833 - DataTable paginator icon support --- api-generator/components/datatable.js | 16 ++++++++++++++++ components/lib/datatable/DataTable.d.ts | 16 ++++++++++++++++ components/lib/datatable/DataTable.vue | 24 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/api-generator/components/datatable.js b/api-generator/components/datatable.js index f57aa6f32..978542b1f 100644 --- a/api-generator/components/datatable.js +++ b/api-generator/components/datatable.js @@ -1157,6 +1157,22 @@ const DataTableSlots = [ { name: 'rowgrouptogglericon', description: 'Custom rowgroup toggler icon template.' + }, + { + name: 'paginatorfirstpagelinkicon', + description: 'Custom paginator first page link icon template.' + }, + { + name: 'paginatorprevpagelinkicon', + description: 'Custom paginator prev page link icon template.' + }, + { + name: 'paginatornextpagelinkicon', + description: 'Custom paginator next page link icon template.' + }, + { + name: 'paginatorlastpagelinkicon', + description: 'Custom paginator last page link icon template.' } ]; diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 83584f4bc..aef1f7320 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -919,6 +919,22 @@ export interface DataTableSlots { */ expanded: boolean; }): VNode[]; + /** + * Custom paginator first page link icon template. + */ + paginatorfirstpagelinkicon(): VNode[]; + /** + * Custom paginator previous page link icon template. + */ + paginatorprevpagelinkicon(): VNode[]; + /** + * Custom paginator next page link icon template. + */ + paginatornextpagelinkicon(): VNode[]; + /** + * Custom paginator last page link icon template. + */ + paginatorlastpagelinkicon(): VNode[]; } /** * Defines valid emits in Datatable component. diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index 6d2db8056..f04553548 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -27,6 +27,18 @@ + + + +
+ + + +