-
Notifications
You must be signed in to change notification settings - Fork 158
fix[(alendar): fix date styles and formating #16618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
a48098f
2f8d7ae
bdd8489
303cede
6bd8cf0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ import { | |
| DateRange, | ||
| DateRangeDescriptor, | ||
| DateRangeType, | ||
| IFormattingViews, | ||
| } from 'igniteui-angular'; | ||
| import { | ||
| Properties, | ||
|
|
@@ -62,6 +63,12 @@ export class CalendarSampleComponent implements OnInit { | |
| year: 'numeric', | ||
| }; | ||
|
|
||
| protected formatViews: IFormattingViews = { | ||
| day: true, | ||
| month: true, | ||
| year: true | ||
| }; | ||
|
Comment on lines
+66
to
+70
|
||
|
|
||
| public panelConfig: PropertyPanelConfig = { | ||
| locale: { | ||
| label: 'Change Locale', | ||
|
|
@@ -87,6 +94,10 @@ export class CalendarSampleComponent implements OnInit { | |
| { | ||
| value: 'ja-JP', | ||
| label: 'JP' | ||
| }, | ||
| { | ||
| value: 'zh-CN', | ||
| label: 'CN' | ||
| } | ||
| ], | ||
| defaultValue: 'en-US' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic now extracts only the 'day' part from the formatted date, which changes the behavior from returning a fully formatted date to returning just the day number. This could be a breaking change if consumers expect the full formatted output. Consider whether this aligns with the intended fix or if a new configuration option is needed.