mirror of
https://github.com/flarum/core.git
synced 2025-10-26 05:06:06 +01:00
Allow custom icon HTML in dropdown-button
Also rename title to label
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user