mirror of
https://github.com/flarum/core.git
synced 2025-05-05 23:15:22 +02:00
Allow custom icon HTML in dropdown-button
Also rename title to label
This commit is contained in:
parent
bbf2c971e4
commit
1f23cbaf20
@ -6,7 +6,7 @@ export default Ember.Component.extend({
|
||||
classNames: ['dropdown', 'btn-group'],
|
||||
classNameBindings: ['itemCountClass', 'class'],
|
||||
|
||||
title: 'Controls',
|
||||
label: 'Controls',
|
||||
icon: 'ellipsis-v',
|
||||
buttonClass: 'btn btn-default',
|
||||
menuClass: '',
|
||||
|
@ -1,6 +1,10 @@
|
||||
<a href="#" {{bind-attr class=":dropdown-toggle buttonClass"}} data-toggle="dropdown" {{action "buttonClick"}}>
|
||||
{{fa-icon icon class="icon-glyph"}}
|
||||
<span class="label">{{title}}</span>
|
||||
{{#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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user