Global Date/Time/Number Formats: Add API Descriptions#8697
Open
arman-boyakhchyan wants to merge 3 commits intoDevExpress:26_1from
Open
Global Date/Time/Number Formats: Add API Descriptions#8697arman-boyakhchyan wants to merge 3 commits intoDevExpress:26_1from
arman-boyakhchyan wants to merge 3 commits intoDevExpress:26_1from
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds API reference documentation for global date/time/number formatting options in DevExtreme’s GlobalConfig.
Changes:
- Documented
GlobalConfig.dateFormat,GlobalConfig.timeFormat,GlobalConfig.dateTimeFormat, andGlobalConfig.numberFormatusage and locale-specific configuration. - Added documentation for
GlobalConfig.dateTimeFormatPresetsand how to override predefined date/time formats.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| api-reference/50 Common/Object Structures/GlobalConfig/timeFormat.md | New docs page for configuring global time formatting, with per-framework examples. |
| api-reference/50 Common/Object Structures/GlobalConfig/numberFormat.md | New docs page for configuring global number formatting, with per-framework examples. |
| api-reference/50 Common/Object Structures/GlobalConfig/dateTimeFormatPresets.md | New docs page for overriding predefined date/time format presets, including locale overrides. |
| api-reference/50 Common/Object Structures/GlobalConfig/dateTimeFormat.md | New docs page for configuring global date+time formatting, with per-framework examples. |
| api-reference/50 Common/Object Structures/GlobalConfig/dateFormat.md | New docs page for configuring global date formatting, with per-framework examples. |
Comment on lines
+21
to
+27
| dateTimeFormatPresets: { | ||
| shortDate: { | ||
| default: 'dd/MM/yyyy', | ||
| 'en-US': 'MM/dd/yyyy', | ||
| }, | ||
| shortTime: 'HH:mm:ss', | ||
| } |
| @@ -0,0 +1,101 @@ | |||
| --- | |||
| id: GlobalConfig.dateTimeFormat | |||
| type: LocalizationFormat | Record | |||
| @@ -0,0 +1,101 @@ | |||
| --- | |||
| id: GlobalConfig.dateFormat | |||
| type: LocalizationFormat | Record | |||
Comment on lines
+18
to
+20
| DevExpress.config({ | ||
| dateFormat: 'yyyy-MM-dd', | ||
| }); |
| @@ -0,0 +1,101 @@ | |||
| --- | |||
| id: GlobalConfig.timeFormat | |||
| type: LocalizationFormat | Record | |||
Comment on lines
+18
to
+20
| DevExpress.config({ | ||
| timeFormat: 'HH:mm:ss', | ||
| }); |
| @@ -0,0 +1,101 @@ | |||
| --- | |||
| id: GlobalConfig.numberFormat | |||
| type: LocalizationFormat | Record | |||
Comment on lines
+18
to
+20
| DevExpress.config({ | ||
| numberFormat: '#0.#', | ||
| }); |
Comment on lines
+18
to
+20
| DevExpress.config({ | ||
| dateTimeFormat: 'yyyy-MM-dd, HH:mm:ss', | ||
| }); |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.