Merge pull request #7175 from pickbreaker/feature/datatable-paginatorcontainer-slot-types

feat(datatable): add types for paginatorcontainer slot
pull/7188/head
Tuğçe Küçükoğlu 2025-02-04 13:09:26 +03:00 committed by GitHub
commit 7b7d354f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 51 additions and 1 deletions

View File

@ -1347,8 +1347,58 @@ export interface DataTableSlots {
}): VNode[];
/**
* Custom paginator container template.
* @param {Object} scope - paginatorcontainer slot's params.
*/
paginatorcontainer(): VNode[];
paginatorcontainer(scope: {
/**
* Index of first record
*/
first: number;
/**
* Index of last record
*/
last: number;
/**
* Number of rows to display in new page
*/
rows: number;
/**
* New page number
*/
page: number;
/**
* Total number of pages
*/
pageCount?: number;
/**
* Total records
*/
totalRecords?: number;
/**
* First page function.
* @param {Event} event - Browser event
*/
firstPageCallback: (event: Event) => void;
/**
* Last page function.
* @param {Event} event - Browser event
*/
lastPageCallback: (event: Event) => void;
/**
* Previous page function.
* @param {Event} event - Browser event
*/
prevPageCallback: (event: Event) => void;
/**
* Next page function.
* @param {Event} event - Browser event
*/
nextPageCallback: (event: Event) => void;
/**
* Row change function.
*/
rowChangeCallback: (value: number) => void;
}): VNode[];
/**
* Custom paginator start template.
*/