Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve types for icons option #6123

Merged
merged 1 commit into from
Apr 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -95,7 +96,7 @@ interface BootstrapTableColumn{
width?: any;
clickToSelect?: boolean;
searchHighlightFormatter?: boolean;
cardVisible?: boolean
cardVisible?: boolean;
}

interface BootstrapTableLocale{
Expand All @@ -122,6 +123,7 @@ interface BootstrapTableLocale{
formatFullscreen?: () => string;

formatShowingRows?: (pageFrom: number, pageTo: number, totalRows: number, totalNotFiltered: number) => string;

formatSRPaginationPageText?: (page: number) => string;

formatClearSearch?: () => string;
Expand All @@ -138,7 +140,7 @@ interface BootstrapTableLocale{

formatToggleOn?: () => string;

formatRecordsPerPage(pageNumber: number): string
formatRecordsPerPage(pageNumber: number): string;
}

interface BootstrapAjaxParams{
Expand Down