File

core/dynamic-forms/input/input.type.component.ts

Extends

FieldType

Metadata

Index

Properties
Accessors

Properties

Static Readonly CONFIG
Type : ConfigOption
Default value : { types: [ { name: 'input', component: FieldInput, wrappers: ['c8y-form-field'] }, { name: 'string', extends: 'input' }, { name: 'typeahead', extends: 'input' }, { name: 'number', extends: 'input', defaultOptions: { templateOptions: { type: 'number' } } }, { name: 'integer', extends: 'input', defaultOptions: { templateOptions: { type: 'number' } } } ] }

Accessors

type
gettype()
<input
  *ngIf="type !== 'number'; else numberTmp"
  [type]="type"
  [formControl]="formControl"
  class="form-control"
  [formlyAttributes]="field"
  [required]="to.required"
  [attr.autocomplete]="to.autocomplete ? to.autocomplete : null"
  [class.is-invalid]="showError"
/>
<ng-template #numberTmp>
  <input
    type="number"
    [formControl]="formControl"
    class="form-control"
    [formlyAttributes]="field"
    [required]="to.required"
    [attr.autocomplete]="to.autocomplete ? to.autocomplete : null"
    [class.is-invalid]="showError"
  />
</ng-template>

results matching ""

    No results matching ""