[Common] added template for the big button with caption without menu

This commit is contained in:
Maxim Kadushkin 2017-03-23 15:52:49 +03:00
parent 1e46c9b386
commit 49df5ea043

View file

@ -120,6 +120,20 @@ define([
'use strict'; 'use strict';
var templateHugeCaption = 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 %>">&nbsp;</i>' +
'<% } %>' +
'</div>' +
'<span class="caption"><%= caption %></span>' +
'</button>' +
'</div>';
var templateHugeMenuCaption =
'<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' + '<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' +
'<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' + '<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' +
'<% if ( iconImg ) { %>' + '<% if ( iconImg ) { %>' +
@ -236,6 +250,8 @@ define([
this.template = _.template(templateHugeSplitCaption); this.template = _.template(templateHugeSplitCaption);
} else } else
if ( !!me.menu ) { if ( !!me.menu ) {
this.template = _.template(templateHugeMenuCaption);
} else {
this.template = _.template(templateHugeCaption); this.template = _.template(templateHugeCaption);
} }
} }