<% obj.attributesTemplate = function(attributes) { _.each(attributes, function(attribute, name) { %> <%= name %><% if (!_.isNull(attribute)) { %>="<%= attribute %>"<% } %> <% }); } %> <% if (links) { %>
<% } %> <<%= tagName %> <% if (tagName == "a") { %> href="<%= link %>"<% } %> class="action <%= className ? " " + className : "" %> <%= !enabled ? " disabled" : "" %> <%= launcherMode != '' ? 'mode-' + launcherMode : "" %> <% if (links) { %> dropdown-toggle<% } %> " <% attributesTemplate(attributes) %> title="<%= title %>" <% if (links) { %> data-toggle="dropdown"<% } %>> <% if (launcherMode == 'icon-text') { %> <%= label %> <% } else if (launcherMode == 'icon-only') { %> <% } else if (launcherMode == 'text-only') { %> <% if (iconClassName) { %><% } %> <%= label %> <% } %> <% if (links) { %><% } %> > <% if (links) { %>
<% } %>