[Autoflow] Add getter-setter controller
Add a utility controller for interacting with getter-setter style ngModels (similar to ng-model-options with getterSetter: true, but support for that is not present in the current version of Angular.) Specifically, this is used to support the input filter control, which in turn is used within the autoflow tabular view. WTD-614.
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
<!-- look at action-button for example -->
|
||||
<span class="t-filter l-filter">
|
||||
<input type="search" class="t-filter-input" ng-model="filter" placeholder="Filter..."/>
|
||||
<a class="ui-symbol t-a-clear s-a-clear" ng-click="filter = null">x</a>
|
||||
<span class="t-filter l-filter"
|
||||
ng-controller="GetterSetterController">
|
||||
<input type="search"
|
||||
class="t-filter-input"
|
||||
ng-model="getterSetter.value"
|
||||
placeholder="Filter..."/>
|
||||
<a class="ui-symbol t-a-clear s-a-clear"
|
||||
ng-show="getterSetter.value !== ''"
|
||||
ng-click="getterSetter.value = ''">
|
||||
x
|
||||
</a>
|
||||
</span>
|
||||
Reference in New Issue
Block a user