@angular/material/form-field#MAT_FORM_FIELD_DEFAULT_OPTIONS TypeScript Examples
The following examples show how to use
@angular/material/form-field#MAT_FORM_FIELD_DEFAULT_OPTIONS.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: dyn-forms.module.ts From open-source with MIT License | 6 votes |
@NgModule({
imports: [
CommonModule,
FlexLayoutModule,
ReactiveFormsModule,
RouterModule.forChild(routes),
DynFormsMaterialModule.forFeature(),
MatButtonModule,
MatNativeDateModule,
LayoutModule,
],
declarations: [
BuilderComponent,
SimpleComponent,
StepperComponent,
StepperStep1Component,
StepperStep2Component,
StepperSummaryComponent,
],
providers: [
{
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
useValue: {
appearance: 'outline',
hideRequiredMarker: true,
floatLabel: 'auto', // also set in INPUT.params.floatLabel
},
},
{
provide: DYN_LOG_LEVEL,
useValue: DynLogLevel.All,
},
],
})
export class DemoFormsModule {}
Example #2
Source File: app.module.ts From open-source with MIT License | 6 votes |
@NgModule({
imports: [
CommonModule,
ReactiveFormsModule,
MatButtonModule,
DynFormsModule,
DynMaterialControls,
],
declarations: EXAMPLES,
entryComponents: EXAMPLES,
exports: EXAMPLES,
providers: [
{
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
useValue: {
appearance: 'outline',
hideRequiredMarker: true,
floatLabel: 'auto', // also set in INPUT.params.floatLabel
},
},
],
})
export class DemoFormsModule {}
Example #3
Source File: app.module.ts From worktez with MIT License | 4 votes |
@NgModule({
declarations: [
AppComponent,
HeaderComponent,
BodyComponent,
CreateNewTaskComponent,
CreateNewSprintComponent,
BoardComponent,
FeatureCardComponent,
SprintDetailsComponent,
TasksComponent,
TaskCardsComponent,
TaskDetailsComponent,
LogWorkComponent,
EditPageComponent,
LoaderComponent,
LoginComponent,
LoginHandlerComponent,
UserCardComponent,
MyDashBoardComponent,
FilterTaskComponent,
NavbarComponent,
ChartComponent,
MyTasksComponent,
PerformanceChartComponent,
RangeCardComponent,
CreateNewOrganizationComponent,
ErrorComponent,
FilterTaskComponent,
Patch1Component,
FocusNavComponent,
UserVerificationComponent,
ProfileComponent,
EditProfileComponent,
TimeChartComponent,
ThemeComponent,
SetupComponent,
HomeComponent,
PieChartComponent,
WorkCompletionComponent,
Patch2Component,
Patch3Component,
UpdateFieldComponent,
ProgressGraphComponent,
ProfileIconsComponent,
SuggestionBucketComponent,
AddMemberComponent,
PerformanceColumnChartComponent,
ColumnChartComponent,
SelectDropdownComponent,
FooterComponent,
ActivityComponent,
ViewOrganizationDetailsComponent,
Patch4Component,
WarningComponent,
TasksEvaluationComponent,
ListPatchesComponent,
PatchCardsComponent,
EditPatchComponent,
CreateNewTeamComponent,
AddPatchComponent,
Patch5Component,
UploadFilesComponent,
ShowFilesComponent,
UploadLogoComponent,
SprintEvaluationGraphComponent,
BarChartComponent,
LinkComponent,
SpeedImagesComponent,
DataTableComponent,
TeamsCardComponent,
OrgDocumentsComponent,
Patch6Component,
CopyrightComponent,
Patch8Component,
NotificationCenterComponent,
Patch7Component,
PrivacyComponent,
EditEducationComponent,
EditWorkexperienceComponent,
EditProjectsComponent,
EditSkillsComponent,
CopyrightComponent,
NotificationCenterComponent,
Patch7Component,
CopyrightComponent,
ContributorsComponent,
TermsAndConditionComponent,
AddContributorsComponent,
EditProfilePicComponent,
UpdateImageComponent,
Patch10Component,
QuickNotesComponent,
AddnewNoteComponent,
EditNoteComponent,
ReleaseNotesComponent,
ReleaseNotesBodyComponent,
SocialPageComponent,
CreatePostComponent,
PostsComponent,
WhatsNewComponent,
GithubLinkComponent,
KanbanBoardComponent,
SchedularPatchComponent,
UpdateTeamComponent,
GitComponent,
ProfilePicturesComponent,
TeamDetailsComponent,
LabelCardComponent,
EditLabelPropComponent,
AddLabelComponent,
TaskECardComponent,
CommentsComponent,
EditDpComponent,
SprintBurndownChartComponent,
OrgDpComponent,
KanbanCardComponent,
TestimonialCardComponent,
MilestoneComponent,
MilestoneDetailsComponent,
GenerateIconComponent,
GetIconComponent,
FilterPageComponent,
EditFilterComponent,
CreateFilterComponent,
IconsBaseComponent,
ColorsBaseComponent,
AddMilestoneComponent,
MilestoneCardComponent,
AddTaskComponent,
],
imports: [
BrowserModule,
ReactiveFormsModule,
FormsModule,
AngularFireModule.initializeApp(environment.firebase),
AngularFireFunctionsModule,
AngularFirestoreModule,
AngularFireStorageModule,
AppRoutingModule,
GoogleChartsModule.forRoot({ version: 'current' }),
HttpClientModule,
BrowserAnimationsModule,
MatTableModule,
MatPaginatorModule,
MatIconModule,
MatBadgeModule,
MatSortModule,
MatInputModule,
MatFormFieldModule,
DragDropModule,
ImageCropperModule
],
providers: [
AuthService,
CookieService,
{ provide: REGION, useValue: 'asia-south1' },
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: {appearance: 'fill'} },
{ provide: USE_AUTH_EMULATOR, useValue: environment.useEmulators ? ['http://localhost:9099'] : undefined },
{ provide: USE_FIRESTORE_EMULATOR, useValue: environment.useEmulators ? ['localhost', '7002'] : undefined },
{ provide: USE_FUNCTIONS_EMULATOR, useValue: environment.useEmulators ? ['localhost', '7001'] : undefined }
],
bootstrap: [AppComponent]
})
export class AppModule { }