mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
c2feae406d
- Allow dropdown-buttons to render a partial
11 lines
390 B
Handlebars
11 lines
390 B
Handlebars
<a href="#" {{bind-attr class=":dropdown-toggle buttonClass"}} data-toggle="dropdown" {{action "buttonClick"}}>
|
|
{{#if buttonPartial}}
|
|
{{partial buttonPartial}}
|
|
{{else}}
|
|
{{fa-icon icon class="icon-glyph"}}
|
|
<span class="label">{{label}}</span>
|
|
{{fa-icon "caret-down" class="icon-caret"}}
|
|
{{/if}}
|
|
</a>
|
|
{{ui/controls/item-list items=items class=dropdownMenuClass}}
|