framework/ember/app/templates/components/ui/controls/dropdown-button.hbs
Toby Zerner 1f23cbaf20 Allow custom icon HTML in dropdown-button
Also rename title to label
2015-01-23 15:22:58 +10:30

11 lines
372 B
Handlebars

<a href="#" {{bind-attr class=":dropdown-toggle buttonClass"}} data-toggle="dropdown" {{action "buttonClick"}}>
{{#if iconHtml}}
{{{iconHtml}}}
{{else}}
{{fa-icon icon class="icon-glyph"}}
{{/if}}
<span class="label">{{label}}</span>
{{fa-icon "caret-down" class="icon-caret"}}
</a>
{{ui/controls/item-list items=items class=dropdownMenuClass}}