|
|
@@ -560,17 +560,21 @@
|
|
|
// showColumns, showToggle, showRefresh
|
|
|
html = ['<div class="columns columns-' + this.options.toolbarAlign + ' btn-group pull-' + this.options.toolbarAlign + '">'];
|
|
|
|
|
|
+ if (typeof this.options.icons === 'string') {
|
|
|
+ this.options.icons = calculateObjectValue(null, this.options.icons);
|
|
|
+ }
|
|
|
+
|
|
|
if (this.options.showRefresh) {
|
|
|
html.push(sprintf('<button class="btn btn-default" type="button" name="refresh" title="%s">',
|
|
|
this.options.formatRefresh()),
|
|
|
- '<i class="'+this.options.iconsPrefix+' '+this.options.icons.refresh+'"></i>',
|
|
|
+ sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.refresh),
|
|
|
'</button>');
|
|
|
}
|
|
|
|
|
|
if (this.options.showToggle) {
|
|
|
html.push(sprintf('<button class="btn btn-default" type="button" name="toggle" title="%s">',
|
|
|
this.options.formatToggle()),
|
|
|
- '<i class="'+this.options.iconsPrefix+' '+this.options.icons.toggle+'"></i>',
|
|
|
+ sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.toggle),
|
|
|
'</button>');
|
|
|
}
|
|
|
|
|
|
@@ -578,7 +582,7 @@
|
|
|
html.push(sprintf('<div class="keep-open btn-group" title="%s">',
|
|
|
this.options.formatColumns()),
|
|
|
'<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">',
|
|
|
- '<i class="'+this.options.iconsPrefix+' '+this.options.icons.columns+'"></i>',
|
|
|
+ sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.columns),
|
|
|
' <span class="caret"></span>',
|
|
|
'</button>',
|
|
|
'<ul class="dropdown-menu" role="menu">');
|