Using isdisabled parameter to disable search bar

This commit is contained in:
Jesús Ángel González 2018-04-30 15:06:51 +02:00 committed by Javier Castro
parent d471ded89d
commit 94fdee664b
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
<div layout="row" flex class="wz-margin-bottom-10"> <div layout="row" flex class="wz-margin-bottom-10">
<input flex id="query" placeholder="{{ placetext }}" ng-class="height ? height : ''" type="text" ng-model="term" ng-change="data.addFilter('search', term)" <input ng-if="!isdisabled" flex id="query" placeholder="{{ placetext }}" ng-class="height ? height : ''" type="text" ng-model="term" ng-change="data.addFilter('search', term)"
class="wz-search-bar-size groupsNoMarginTop input-filter-box wz-width-100" />
<input ng-if="isdisabled" disabled flex id="query" placeholder="{{ placetext }}" ng-class="height ? height : ''" type="text" ng-model="term" ng-change="data.addFilter('search', term)"
class="wz-search-bar-size groupsNoMarginTop input-filter-box wz-width-100" /> class="wz-search-bar-size groupsNoMarginTop input-filter-box wz-width-100" />
</div> </div>

View File

@ -30,7 +30,7 @@
</md-button> </md-button>
</div> </div>
<wz-search-bar class="wz-lateral-padding-16" data="logs" term="searchTerm" placetext="'Filter logs...'"></wz-search-bar> <wz-search-bar isdisabled="realtime" class="wz-lateral-padding-16" data="logs" term="searchTerm" placetext="'Filter logs...'"></wz-search-bar>
<div flex layout="column" class="md-padding no-padding-top"> <div flex layout="column" class="md-padding no-padding-top">