ng2-encrm-components
Version:
46 lines (45 loc) • 1.57 kB
HTML
<div class="en-input-group"
[]="hasSuccess"
[]="hasDanger"
[]="hasWarning">
<input [type]="type"
class="form-control en-form-control"
[]="empty"
[]="focused"
[]="floatingPlaceholder"
[]="ariaLabel"
[]="ariaLabelledBy"
[]="ariaDisabled"
[]="ariaRequired"
[]="ariaInvalid"
[]="autoComplete"
[]="autoCorrect"
[]="autoCapitalize"
[]="autoFocus"
[]="disabled"
[]="inputId"
[]="list"
[]="max"
[]="maxLength"
[]="min"
[]="minLength"
[]="readOnly"
[]="required"
[]="spellCheck"
[]="step"
[]="tabIndex"
[]="name"
(focus)="_handleFocus($event)"
(blur)="_handleBlur($event)"
[(ngModel)]="value"
(change)="_handleChange($event)">
<label [attr.for]="inputId" (click)="_labelClickHandler()">
<span *ngIf="required">*</span>
{{placeholder}}
</label>
<span class="en-inner-addon"
[]="addonRight"
(click)="_btnClickHandler()">
<ng-content></ng-content>
</span>
</div>