salix/client/core/src/components/textfield/textfield.html

30 lines
1.0 KiB
HTML
Raw Normal View History

2018-06-21 07:12:35 +00:00
<div
class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
2017-09-27 10:27:18 +00:00
ng-mouseenter="$ctrl.hasMouseIn = true"
2018-06-21 07:12:35 +00:00
ng-mouseleave="$ctrl.hasMouseIn = false">
<input
class="mdl-textfield__input"
type="{{$ctrl.type}}"
name="{{$ctrl.name}}"
ng-model="$ctrl.value"
vn-validation="{{$ctrl.rule}}"
ng-disabled="$ctrl.disabled"
ng-readonly="$ctrl.readonly"
ng-focus="$ctrl.hasFocus = true"
ng-blur="$ctrl.hasFocus = false"
tabindex="{{$ctrl.input.tabindex}}"/>
<div class="mdl-chip__action">
<i class="material-icons"
ng-if="$ctrl.hasInfo"
vn-tooltip="{{$ctrl.info}}">
info_outline
</i>
<i class="material-icons pointer"
ng-show="!$ctrl.disabled && $ctrl.hasValue && ($ctrl.hasFocus || $ctrl.hasMouseIn)"
ng-click="$ctrl.clear()">
clear
</i>
2017-09-13 08:59:34 +00:00
</div>
2018-06-21 07:12:35 +00:00
<label class="mdl-textfield__label" translate>{{::$ctrl.label}}</label>
2017-09-12 09:44:56 +00:00
</div>