|
|
@@ -313,6 +313,7 @@
|
|
|
searchTimeOut: 500,
|
|
|
searchText: '',
|
|
|
iconSize: undefined,
|
|
|
+ buttonsClass: 'default',
|
|
|
iconsPrefix: 'glyphicon', // glyphicon of fa (font awesome)
|
|
|
icons: {
|
|
|
paginationSwitchDown: 'glyphicon-collapse-down icon-chevron-down',
|
|
|
@@ -954,14 +955,17 @@
|
|
|
}
|
|
|
|
|
|
if (this.options.showPaginationSwitch) {
|
|
|
- html.push(sprintf('<button class="btn btn-default" type="button" name="paginationSwitch" title="%s">',
|
|
|
+ html.push(sprintf('<button class="btn' +
|
|
|
+ sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
+ '" type="button" name="paginationSwitch" title="%s">',
|
|
|
this.options.formatPaginationSwitch()),
|
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.paginationSwitchDown),
|
|
|
'</button>');
|
|
|
}
|
|
|
|
|
|
if (this.options.showRefresh) {
|
|
|
- html.push(sprintf('<button class="btn btn-default' +
|
|
|
+ html.push(sprintf('<button class="btn' +
|
|
|
+ sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
'" type="button" name="refresh" title="%s">',
|
|
|
this.options.formatRefresh()),
|
|
|
@@ -970,7 +974,8 @@
|
|
|
}
|
|
|
|
|
|
if (this.options.showToggle) {
|
|
|
- html.push(sprintf('<button class="btn btn-default' +
|
|
|
+ html.push(sprintf('<button class="btn' +
|
|
|
+ sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
'" type="button" name="toggle" title="%s">',
|
|
|
this.options.formatToggle()),
|
|
|
@@ -981,7 +986,8 @@
|
|
|
if (this.options.showColumns) {
|
|
|
html.push(sprintf('<div class="keep-open btn-group" title="%s">',
|
|
|
this.options.formatColumns()),
|
|
|
- '<button type="button" class="btn btn-default' +
|
|
|
+ '<button type="button" class="btn' +
|
|
|
+ sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
' dropdown-toggle" data-toggle="dropdown">',
|
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.columns),
|
|
|
@@ -1228,7 +1234,8 @@
|
|
|
sprintf('<span class="btn-group %s">',
|
|
|
this.options.paginationVAlign === 'top' || this.options.paginationVAlign === 'both' ?
|
|
|
'dropdown' : 'dropup'),
|
|
|
- '<button type="button" class="btn btn-default ' +
|
|
|
+ '<button type="button" class="btn' +
|
|
|
+ sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
' dropdown-toggle" data-toggle="dropdown">',
|
|
|
'<span class="page-size">',
|