[Common] added template for the big button with caption without menu
This commit is contained in:
parent
1e46c9b386
commit
49df5ea043
|
@ -120,6 +120,20 @@ define([
|
|||
'use strict';
|
||||
|
||||
var templateHugeCaption =
|
||||
'<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' +
|
||||
'<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' +
|
||||
'<div class="inner-box-icon">' +
|
||||
'<% if ( iconImg ) { %>' +
|
||||
'<img src="<%= iconImg %>">' +
|
||||
'<% } else { %>' +
|
||||
'<i class="icon <%= iconCls %>"> </i>' +
|
||||
'<% } %>' +
|
||||
'</div>' +
|
||||
'<span class="caption"><%= caption %></span>' +
|
||||
'</button>' +
|
||||
'</div>';
|
||||
|
||||
var templateHugeMenuCaption =
|
||||
'<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' +
|
||||
'<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' +
|
||||
'<% if ( iconImg ) { %>' +
|
||||
|
@ -236,6 +250,8 @@ define([
|
|||
this.template = _.template(templateHugeSplitCaption);
|
||||
} else
|
||||
if ( !!me.menu ) {
|
||||
this.template = _.template(templateHugeMenuCaption);
|
||||
} else {
|
||||
this.template = _.template(templateHugeCaption);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue