Skip to content

Commit ab17a7b

Browse files
feat(calendar-web): add time format property to Calendar widget
1 parent cf6e6bc commit ab17a7b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/pluggableWidgets/calendar-web/src/Calendar.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
<attributeType name="DateTime" />
115115
</attributeTypes>
116116
</property>
117+
<property key="timeFormat" type="textTemplate" required="false">
118+
<caption>Time format</caption>
119+
<description>Default time format is "hh:mm a"</description>
120+
</property>
117121
<property key="minHour" type="integer" defaultValue="0">
118122
<caption>Day start hour</caption>
119123
<description>The hour at which the day view starts (0–23)</description>

packages/pluggableWidgets/calendar-web/typings/CalendarProps.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface CalendarContainerProps {
4646
defaultViewCustom: DefaultViewCustomEnum;
4747
defaultViewStandard: DefaultViewStandardEnum;
4848
startDateAttribute?: EditableValue<Date>;
49+
timeFormat?: DynamicValue<string>;
4950
minHour: number;
5051
maxHour: number;
5152
customViewCaption?: DynamicValue<string>;
@@ -99,6 +100,7 @@ export interface CalendarPreviewProps {
99100
defaultViewCustom: DefaultViewCustomEnum;
100101
defaultViewStandard: DefaultViewStandardEnum;
101102
startDateAttribute: string;
103+
timeFormat: string;
102104
minHour: number | null;
103105
maxHour: number | null;
104106
customViewCaption: string;

0 commit comments

Comments
 (0)