forked from theoomoregbee/angular-tag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplates.js
More file actions
1 lines (1 loc) · 1.22 KB
/
templates.js
File metadata and controls
1 lines (1 loc) · 1.22 KB
1
angular.module('angular-tag/templates', []).run(['$templateCache', function($templateCache) {$templateCache.put('angular-tag/templates/input.html','<div id="main-tag">\r\n<div class="tag-container">\r\n <ul ng-class="[\'tag\',{focus:isFocus},theme ]" ng-click="isFocus=true" ng-keydown="direction_keys($event)">\r\n <li ng-repeat="select in selected" ng-click="(moveToTag($event,$index)) ">\r\n {{select[displayField]}} <a href="javascript:void(0)" ng-click="remove(select)">×</a>\r\n </li>\r\n<li>\r\n <input ng-class="{error:hasError}" ng-model="input" ng-keyup="on_input_keyup($event)" ng-keydown="on_input_keydown($event)" ng-focus="isFocus=true" ng-blur="isFocus=false" focus-me="isFocus"\r\n type="input" placeholder="{{placeholder}}" >\r\n</li>\r\n </ul>\r\n</div>\r\n\r\n<ul class="tag-typehead" ng-show="input.length && typehead && results.length " >\r\n <li class="animate-repeat" ng-repeat="item in data | filter:input as results">\r\n <a href="javascript:void(0)" ng-click="processor(item[displayField])">{{item[displayField]}}</a>\r\n </li>\r\n <!--<li class="animate-repeat" ng-if="results.length == 0">\r\n <strong>No results found...</strong>\r\n </li>-->\r\n</ul>\r\n</div>');}]);