-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datepicker): add configuration class for datepicker component an…
…d use it instead of hardcoded constants
- Loading branch information
1 parent
83452e1
commit 290214e
Showing
5 changed files
with
32 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
@Injectable() | ||
export class DatepickerConfig { | ||
public datepickerMode: string = 'day'; | ||
public startingDay: number = 0; | ||
public yearRange: number = 20; | ||
public minMode: string = 'day'; | ||
public maxMode: string = 'year'; | ||
public showWeeks: boolean = true; | ||
public formatDay: string = 'DD'; | ||
public formatMonth: string = 'MMMM'; | ||
public formatYear: string = 'YYYY'; | ||
public formatDayHeader: string = 'dd'; | ||
public formatDayTitle: string = 'MMMM YYYY'; | ||
public formatMonthTitle: string = 'YYYY'; | ||
public onlyCurrentMonth: boolean = false; | ||
public monthColLimit: number = 3; | ||
public yearColLimit: number = 5; | ||
public shortcutPropagation: boolean = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters