-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9edc43
commit 4dd68e5
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Start Of Week | ||
description: Control what day of the week Schedulely starts on | ||
--- | ||
|
||
Schedulely provides an easy way to change the day that calendar starts on. | ||
|
||
## Usage | ||
|
||
You will need to manually pass in the `createDefaultAdapter` to the `dateAdapter` property. | ||
|
||
```tsx | ||
import { Schedulely, WeekDay, createDefaultAdapter } from 'schedulely'; | ||
|
||
<Schedulely dateAdapter={createDefaultAdapter('en', Weekday.Monday)} />; | ||
``` | ||
|
||
The calendar is setup to try it's best to wrap the trailing/leading days evenly on the top and bottom respectively. However, the top takes priority for the current month and if the month starts of the selected start of the week, you will not see trailing days from the previous month. | ||
|
||
## Warning | ||
|
||
It is very likely the API for changing the start of week will be changed in the future to be a bit cleaner. |
This file contains 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