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

40 lines
1.4 KiB
HTML
Raw Normal View History

2018-06-28 13:54:54 +00:00
<div class="container"
2018-07-03 12:33:31 +00:00
ng-class="{selected: $ctrl.hasFocus}">
2018-06-28 13:54:54 +00:00
<div class="textField">
2018-07-03 12:33:31 +00:00
<div class="leftIcons"></div>
2018-06-28 13:54:54 +00:00
<div class="infix">
2018-07-03 12:33:31 +00:00
<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}}"/>
2018-06-28 13:54:54 +00:00
<label class="label" translate>{{::$ctrl.label}}</label>
</div>
<div class="underline"></div>
<div class="selected underline"></div>
<div class="suffix">
2018-07-03 12:33:31 +00:00
<i class="material-icons clear"
translate-attr="{title: 'Clear'}"
2018-06-28 13:54:54 +00:00
ng-class="{visible:
!$ctrl.disabled
&& $ctrl.hasValue
2018-07-03 12:33:31 +00:00
&& ($ctrl.hasFocus)
2018-06-28 13:54:54 +00:00
&& !$ctrl.unclearable}"
ng-click="$ctrl.clear()">
clear
</i>
<i class="material-icons"
ng-if="$ctrl.hasInfo"
vn-tooltip="{{$ctrl.info}}">
info_outline
</i>
</div>
<div class="rightIcons"></div>
2017-09-13 08:59:34 +00:00
</div>
2017-09-12 09:44:56 +00:00
</div>