Source-Tag: v1.0.3 Manifest-SHA256: b7b09bf48f9e092ed8ad82f99c0319d6c3837d0a1549bd0cc4a374276c0f3896
10 lines
897 B
HTML
10 lines
897 B
HTML
<div class="command-menu" ng-if="commandMenuOpen" role="listbox" id="{{inputId}}-command-menu">
|
|
<button type="button" class="command-menu-item" ng-repeat="item in commandMenuMatches track by item.command" ng-class="{selected: $index === commandMenuIndex}" id="{{inputId}}-command-{{$index}}" role="option" aria-selected="{{$index === commandMenuIndex}}" ng-mousedown="$event.preventDefault()" ng-mouseenter="commandMenuIndex = $index" ng-click="selectCommand(item)">
|
|
<span class="command-menu-name">/{{item.command}}</span>
|
|
<span class="command-menu-args" ng-bind="item.args"></span>
|
|
<span class="command-menu-description" ng-bind="item.description"></span>
|
|
</button>
|
|
<div class="command-menu-empty" ng-if="commandMenuLoading">Loading commands...</div>
|
|
<div class="command-menu-empty" ng-if="!commandMenuLoading && !commandMenuMatches.length">No matching commands</div>
|
|
</div>
|