File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
src/BootstrapBlazor.Server Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,14 @@ private AttributeItem[] GetAttributes() =>
7777 Type = "RenderFragment<CalendarCellValue>" ,
7878 ValueList = " — " ,
7979 DefaultValue = " — "
80+ } ,
81+ new ( )
82+ {
83+ Name = nameof ( Calendar . FirstDayOfWeek ) ,
84+ Description = Localizer [ "FirstDayOfWeek" ] ,
85+ Type = "DayOfWeek" ,
86+ ValueList = " — " ,
87+ DefaultValue = "Sunday"
8088 }
8189 ] ;
8290}
Original file line number Diff line number Diff line change @@ -221,6 +221,14 @@ private AttributeItem[] GetAttributes() =>
221221 DefaultValue = " — "
222222 } ,
223223 new ( )
224+ {
225+ Name = nameof ( DateTimePicker < DateTime > . FirstDayOfWeek ) ,
226+ Description = Localizer [ "AttrFirstDayOfWeek" ] ,
227+ Type = "DayOfWeek" ,
228+ ValueList = " — " ,
229+ DefaultValue = "Sunday"
230+ } ,
231+ new ( )
224232 {
225233 Name = "ViewMode" ,
226234 Description = Localizer [ "Att9" ] ,
Original file line number Diff line number Diff line change 25722572 "FeatureShowHolidaysIntro": "<code>ShowHolidays</code> Whether to display holidays",
25732573 "OnGetDisabledDaysCallbackEvent": "Disable date callback method",
25742574 "AttrEnableDisabledDaysCache": "Whether to enable custom disabled date cache",
2575- "AttrDisplayDisabledDayAsEmpty": "Display disabled date as an empty string"
2575+ "AttrDisplayDisabledDayAsEmpty": "Display disabled date as an empty string",
2576+ "AttrFirstDayOfWeek": "The first day of the week"
25762577 },
25772578 "BootstrapBlazor.Server.Components.Samples.TimePickers": {
25782579 "Title": "TimePicker",
37683769 "Chinese": "Chinese",
37693770 "Math": "Math",
37703771 "English": "English",
3771- "Study": "Study"
3772+ "Study": "Study",
3773+ "FirstDayOfWeek": "The first day of the week"
37723774 },
37733775 "BootstrapBlazor.Server.Components.Samples.Cameras": {
37743776 "Title": "Camera",
Original file line number Diff line number Diff line change 25722572 "FeatureShowHolidaysIntro" : " <code>ShowHolidays</code> 是否显示假日" ,
25732573 "OnGetDisabledDaysCallbackEvent" : " 获得自定义禁用日期回调方法" ,
25742574 "AttrEnableDisabledDaysCache" : " 是否启用获得自定义禁用日期缓存" ,
2575- "AttrDisplayDisabledDayAsEmpty" : " 显示禁用日期为空字符串"
2575+ "AttrDisplayDisabledDayAsEmpty" : " 显示禁用日期为空字符串" ,
2576+ "AttrFirstDayOfWeek" : " 设置每周第一天"
25762577 },
25772578 "BootstrapBlazor.Server.Components.Samples.TimePickers" : {
25782579 "Title" : " TimePicker 时间选择器" ,
37683769 "Chinese" : " 语文" ,
37693770 "Math" : " 数学" ,
37703771 "English" : " 英语" ,
3771- "Study" : " 自习"
3772+ "Study" : " 自习" ,
3773+ "FirstDayOfWeek" : " 设置每周第一天"
37723774 },
37733775 "BootstrapBlazor.Server.Components.Samples.Cameras" : {
37743776 "Title" : " Camera 摄像头拍照组件" ,
You can’t perform that action at this time.
0 commit comments