mirror of https://github.com/rancher/ui.git
32 lines
887 B
Handlebars
32 lines
887 B
Handlebars
{{input type="text" class="form-control" value=value placeholder=placeholder}}
|
|
<BasicDropdown @horizontalPosition="right" as |dd|>
|
|
<dd.Trigger class="btn bg-primary input-group-btn">
|
|
<i class="icon icon-chevron-down"></i>
|
|
</dd.Trigger>
|
|
<dd.Content>
|
|
{{#if grouped}}
|
|
{{#each-in grouped as |group choices|}}
|
|
{{#if choices.length}}
|
|
<li class="dropdown-header">
|
|
{{group}}
|
|
</li>
|
|
{{#each choices as |value|}}
|
|
<li {{action "select" value dd}}>
|
|
<a href="#">
|
|
{{value}}
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
{{/if}}
|
|
{{/each-in}}
|
|
{{else}}
|
|
{{#each choices as |value|}}
|
|
<li {{action "select" value dd}}>
|
|
<a href="#">
|
|
{{value}}
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
{{/if}}
|
|
</dd.Content>
|
|
</BasicDropdown> |