ui-form

Generation

ng g @ngx-kit/collection:ui-form [name]

Demo

PreviewSources

Default form

Form with reactive controls

Form with aligned layout

Add class `layout-aligned` to `uiForm` or `uiFormField`.

Form with inline layout

Add class `layout-inline` to `uiForm` or `uiFormField`.

API

[class] UiFormDemoModule

@NgModule

[class] UiFormFieldComponent

@Component

Selector:'ui-form-field'

Members

SignatureDescription
@Input() label: string
@Input() required: boolean

Display required sign after label.

errors: string[]
hasError(name: string): boolean

[class] UiFormModule

@NgModule

Exports:[ KitFormFieldModule, KitFormTouchModule, UiFormComponent, UiFormFieldComponent, ]

[class] UiFormComponent

@Component

Selector:'ui-form,[uiForm]'