@ng2-dynamic-forms/ui-material
TypeScript icon, indicating that this package has built-in type declarations

1.4.31 • Public • Published

ng2 Dynamic Forms Material UI

Installation

npm install @ng2-dynamic-forms/ui-material -S

Import

@NgModule({

    imports: [
        // ...
        ReactiveFormsModule,
        BrowserAnimationsModule,
        DynamicFormsCoreModule.forRoot(),
        DynamicFormsMaterialUIModule
    ]
})

export class AppModule {}

Usage

with DynamicMaterialFormComponent:

<form [formGroup]="myFormGroup">

    <dynamic-material-form [group]="myFormGroup"
                           [model]="myFormModel"></dynamic-material-form>
</form>

with DynamicMaterialFormControlComponent:

<form [formGroup]="myFormGroup">

    <dynamic-material-form-control *ngFor="let controlModel of myFormModel"
                                   [group]="myFormGroup"
                                   [model]="controlModel"></dynamic-material-form-control>
</form>

Form Controls

Control Model Required Property
Autocomplete DynamicInputModel list
Checkbox DynamicCheckboxModel
Checkbox Group DynamicCheckboxGroupModel
Datepicker DynamicDatePickerModel
Input DynamicInputModel
Radio Group DynamicRadioGroupModel
Select DynamicSelectModel
Slider DynamicSliderModel
SlideToggle DynamicSwitchModel
Textarea DynamicTextAreaModel

Sample

Live Demo

Package Sidebar

Install

npm i @ng2-dynamic-forms/ui-material

Weekly Downloads

5

Version

1.4.31

License

ISC

Last publish

Collaborators

  • ng2-dynamic-forms