docs/docs-web/src/main/webapp/src/partial/docs/directive.selecttag.html
2020-02-15 23:00:35 +01:00

11 lines
615 B
HTML

<div>
<ul class="list-inline">
<li ng-repeat="tag in tags">
<span class="label label-info" ng-style="{ 'background': tag.color }" invert-text-color="{{ tag.color }}">{{ tag.name }}
<span class="fas fa-times" ng-click="deleteTag(tag)" ng-show="!ngDisabled"></span>
</span>
</li>
</ul>
<input class="form-control" type="text" id="{{ ref }}" ng-attr-placeholder="{{ 'directive.selecttag.typeahead' | translate }}" ng-model="input" ng-disabled="ngDisabled"
autocomplete="off" uib-typeahead="tag.name for tag in allTags | filter: $viewValue" typeahead-on-select="addTag()" />
</div>