|
|
@@ -527,13 +527,13 @@ class BootstrapTable {
|
|
|
|
|
|
toggle: `<button class="${this.constants.buttonsClass}" type="button" name="toggle"
|
|
|
aria-label="Toggle" title="${opts.formatToggle()}">
|
|
|
- ${opts.showButtonIcons ? Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, opts.icons.toggleOff) : '' }
|
|
|
+ ${opts.showButtonIcons ? Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, opts.icons.toggleOff) : ''}
|
|
|
${opts.showButtonText ? opts.formatToggleOn() : ''}
|
|
|
</button>`,
|
|
|
|
|
|
fullscreen: `<button class="${this.constants.buttonsClass}" type="button" name="fullscreen"
|
|
|
aria-label="Fullscreen" title="${opts.formatFullscreen()}">
|
|
|
- ${opts.showButtonIcons ? Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, opts.icons.fullscreen) : '' }
|
|
|
+ ${opts.showButtonIcons ? Utils.sprintf(this.constants.html.icon, opts.iconsPrefix, opts.icons.fullscreen) : ''}
|
|
|
${opts.showButtonText ? opts.formatFullscreen() : ''}
|
|
|
</button>`,
|
|
|
|
|
|
@@ -951,9 +951,8 @@ class BootstrapTable {
|
|
|
|
|
|
pageList = pageList.map(value => {
|
|
|
if (typeof value === 'string') {
|
|
|
- return value.toLowerCase() === opts.formatAllRows().toLowerCase() ||
|
|
|
- ['all', 'unlimited'].includes(value.toLowerCase())
|
|
|
- ? opts.formatAllRows() : +value
|
|
|
+ return (value.toLowerCase() === opts.formatAllRows().toLowerCase() ||
|
|
|
+ ['all', 'unlimited'].includes(value.toLowerCase())) ? opts.formatAllRows() : +value
|
|
|
}
|
|
|
return value
|
|
|
})
|
|
|
@@ -1653,6 +1652,28 @@ class BootstrapTable {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (
|
|
|
+ this.options.search &&
|
|
|
+ this.options.sidePagination === 'server' &&
|
|
|
+ this.columns.filter(column => !column.searchable).length
|
|
|
+ ) {
|
|
|
+ params.searchable = []
|
|
|
+
|
|
|
+ for (const column of this.columns) {
|
|
|
+ if (
|
|
|
+ !column.checkbox &&
|
|
|
+ column.searchable &&
|
|
|
+ (
|
|
|
+ this.options.visibleSearch &&
|
|
|
+ column.visible ||
|
|
|
+ !this.options.visibleSearch
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ params.searchable.push(column.field)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (!(Utils.isEmptyObject(this.filterColumnsPartial))) {
|
|
|
params.filter = JSON.stringify(this.filterColumnsPartial, null)
|
|
|
}
|