salix/client/core/src/datePicker/datePicker.html

22 lines
827 B
HTML
Raw Normal View History

2017-11-02 07:18:37 +00:00
<div
class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
tabindex="1"
ng-focus="$ctrl.hasFocus = true"
ng-blur="$ctrl.hasFocus = false"
ng-mouseenter="$ctrl.hasMouseIn = true"
2017-12-04 07:17:29 +00:00
ng-mouseleave="$ctrl.hasMouseIn = false"
ng-click="$ctrl.onClick()"
2017-11-02 07:18:37 +00:00
>
2017-07-12 12:32:15 +00:00
<input type="text"
class="mdl-textfield__input"
2017-07-12 11:32:25 +00:00
name="{{::$ctrl.name}}"
ng-model="$ctrl.modelView"
ng-disabled="{{!$ctrl.enabled}}"
2017-11-02 07:18:37 +00:00
rule="{{::$ctrl.rule}}"/>
<div class="mdl-chip__action">
<i class="material-icons" ng-if="$ctrl.isTimePicker" ng-click="$ctrl.vp.open()">query_builder</i>
<i class="material-icons pointer" ng-show="$ctrl.modelView&&($ctrl.hasFocus||$ctrl.hasMouseIn)" ng-click="$ctrl.onClear()">clear</i>
</div>
<label class="mdl-textfield__label" translate>{{$ctrl.label}}</label>
2017-07-12 11:32:25 +00:00
</div>