2015-02-25 17:54:44 +00:00
|
|
|
<div class="t-btn l-btn s-btn s-icon-btn s-very-subtle btn-menu menu-element dropdown click-invoke"
|
2015-02-20 19:30:04 +00:00
|
|
|
ng-controller="ClickAwayController as toggle">
|
|
|
|
|
2015-02-26 19:04:21 +00:00
|
|
|
<span class="l-click-area" ng-click="toggle.toggle()">
|
2015-02-20 19:30:04 +00:00
|
|
|
<span class="ui-symbol icon">{{structure.glyph}}</span>
|
|
|
|
<span class="title-label" ng-if="structure.text">
|
|
|
|
{{structure.text}}
|
|
|
|
</span>
|
|
|
|
<span class='ui-symbol icon invoke-menu'
|
|
|
|
ng-if="!structure.text">
|
|
|
|
v
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<div class="menu dropdown" ng-show="toggle.isActive()">
|
|
|
|
<ul>
|
2015-02-26 19:04:21 +00:00
|
|
|
<li ng-click="structure.click(option.key); toggle.setState(false)" ng-repeat="option in structure.options">
|
|
|
|
<a href="">
|
2015-02-20 19:30:04 +00:00
|
|
|
<span class="ui-symbol type-icon icon">
|
|
|
|
{{option.glyph}}
|
|
|
|
</span>
|
|
|
|
{{option.name}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|