Erasable input Markup
Erasable input field (markup only)
- HTML
<div class="t-content c-form"> <div style="display: flex; align-items: stretch; height: 2em;" ng-controller="erasableInputExampleController"> <div class="c-erasableInput"> <input ng-model="searchText" placeholder="" ng-model-options="{ debounce: 500 }" ng-change="searchChanged(searchText)" /> <inv-icon class="c-erasableInput-icon" ng-show="searchText.length" glyph="'times-circle'" ng-click="searchChanged('')"> </inv-icon> </div> </div> </div>