From c10e5d666728fed68d225fbb6e788c68f57ea0df Mon Sep 17 00:00:00 2001 From: Nathan Walters Date: Fri, 29 Apr 2022 17:20:46 -0700 Subject: [PATCH] fix: Improve types for icons option --- index.d.ts | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/index.d.ts b/index.d.ts index c608c200e..aedfd14d5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -13,21 +13,22 @@ interface BootstrapTableHtml{ toolbarDropdownSeparator: string; dropdownCaret: string; searchClearButton: string; - toolbarDropdownItem: string + toolbarDropdownItem: string; } interface BootstrapTableIcons{ - toggleOff: string; - clearSearch: string; - detailOpen: string; - search: string; - fullscreen: string; - columns: string; - detailClose: string; - refresh: string; - paginationSwitchDown: string; - paginationSwitchUp: string; - toggleOn: string + toggleOff?: string; + clearSearch?: string; + detailOpen?: string; + search?: string; + fullscreen?: string; + columns?: string; + detailClose?: string; + refresh?: string; + paginationSwitchDown?: string; + paginationSwitchUp?: string; + toggleOn?: string; + autoRefresh?: string; } interface BootstrapTableEvents{ @@ -59,7 +60,7 @@ interface BootstrapTableEvents{ 'post-header.bs.table': string; 'toggle.bs.table': string; 'sort.bs.table': string; - 'scroll-body.bs.table': string + 'scroll-body.bs.table': string; } interface BootstrapTableColumn{ @@ -95,7 +96,7 @@ interface BootstrapTableColumn{ width?: any; clickToSelect?: boolean; searchHighlightFormatter?: boolean; - cardVisible?: boolean + cardVisible?: boolean; } interface BootstrapTableLocale{ @@ -122,6 +123,7 @@ interface BootstrapTableLocale{ formatFullscreen?: () => string; formatShowingRows?: (pageFrom: number, pageTo: number, totalRows: number, totalNotFiltered: number) => string; + formatSRPaginationPageText?: (page: number) => string; formatClearSearch?: () => string; @@ -138,7 +140,7 @@ interface BootstrapTableLocale{ formatToggleOn?: () => string; - formatRecordsPerPage(pageNumber: number): string + formatRecordsPerPage(pageNumber: number): string; } interface BootstrapAjaxParams{