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
/**
* Set the first day of the week. 0 - for Sunday, 6 - for Saturday
* @param firstDayOfWeek The first day of the week
* @type {number}
* @default 0
*/
@property({ type: Number, attribute: 'first-day-of-week' })
public set firstDayOfWeek (firstDayOfWeek: number) {
firstDayOfWeek %= 7;
const oldFirstDayOfWeek = this._firstDayOfWeek;
if (oldFirstDayOfWeek !== firstDayOfWeek) {
this._firstDayOfWeek = firstDayOfWeek;
this.requestUpdate('firstDayOfWeek', oldFirstDayOfWeek);
}
}
Expected output
Property
Attribute
Type
Default
Description
firstDayOfWeek
first-day-of-week
number
0
Set the first day of the week. 0 - for Sunday, 6 - for Saturday
Actual output
Property
Attribute
Type
Default
Description
firstDayOfWeek
first-day-of-week
number
"0"
Set the first day of the week. 0 - for Sunday, 6 - for Saturday
The text was updated successfully, but these errors were encountered:
Example code
Expected output
firstDayOfWeek
first-day-of-week
number
0 - for Sunday, 6 - for Saturday
Actual output
firstDayOfWeek
first-day-of-week
number
0 - for Sunday, 6 - for Saturday
The text was updated successfully, but these errors were encountered: