Interfaces - ngx-form/element GitHub Wiki
You can import them from @ngx-form/core
component type:
import { Type } from '@angular/core';
export type component = Type<{}>;
element type holds an information about what kind of html element we can provide, for now we have as you can see below but it depends also on FormsElementModule configuration:
export type element = 'checkbox' | 'input' | 'select';
If your element is input then you have to choose its type:
export type input = 'date' | 'datetime' | 'datetime-local' | 'email' | 'month' | 'password' | 'range' | 'tel' | 'text' | 'time' | 'url' |`
`'week';
Below common html element attributes in typescript type:
export type autocomplete = 'on' | 'off';
export type autofocus = 'autofocus' | '';
export type disabled = 'disabled' | '';
export type readonly = 'readonly' | '';
export type required = 'required' | '';