You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formats a given date object into a locale-aware date and time string.
23
+
24
+
**Kind**: global function
25
+
**Returns**: <code>string</code> - - The formatted date and time string (e.g., "Dec 24, 2024, 10:30 AM").
26
+
27
+
| Param | Type | Description |
28
+
| --- | --- | --- |
29
+
|[date]| <code>Date</code> | The date object to format. If not provided, the current date and time will be used. |
30
+
|[lang]| <code>string</code> | Optional language code to use for formatting (e.g., 'en', 'fr'). If not provided, defaults to the application locale or 'en'. |
31
+
|[dateTimeFormat]| <code>Object</code> | Optional object specifying the date and time formatting options. Defaults to { dateStyle: 'medium', timeStyle: 'short' }. |
32
+
|[dateTimeFormat.dateStyle]| <code>string</code> | Specifies the date format style. One of: DATE_TIME_STYLE.*|
33
+
|[dateTimeFormat.timeStyle]| <code>string</code> | Specifies the time format style. One of: DATE_TIME_STYLE.*|
Copy file name to clipboardExpand all lines: docs/API-Reference/widgets/PopUpManager.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@ Add Esc key handling for a popup DOM element.
22
22
| removeHandler | <code>function</code> | Pop-up specific remove (e.g. display:none or DOM removal) |
23
23
| autoRemove | <code>Boolean</code> | Specify true to indicate the PopUpManager should remove the popup from the _popUps array when the popup is closed. Specify false when the popup is always persistant in the _popUps array. |
24
24
| options | <code>object</code> ||
25
-
| options.popupManagesFocus | <code>boolean</code> | set to true if the popup manages focus restore on close |
25
+
|[options.popupManagesFocus]| <code>boolean</code> | set to true if the popup manages focus restore on close |
26
+
|[options.closeCurrentPopups]| <code>boolean</code> | set to true if you want to dismiss all exiting popups before adding this. Useful when this should be the only popup visible. |
0 commit comments