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
Copy file name to clipboardExpand all lines: api-reference/10 UI Components/dxScheduler/1 Configuration/offset.md
+13-19Lines changed: 13 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,12 @@ default: 0
5
5
---
6
6
---
7
7
##### shortDescription
8
-
Specifies the minute offset within Scheduler indicating the starting point of a day.
8
+
Specifies the minute offset applied to configured day durations in all views.
9
9
10
10
---
11
-
This property moves the interval between [startDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/startDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#startDayHour') and [endDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/endDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#endDayHour'). The offset is a multiple of 5 and can range from -1440 minutes (-24 hours) to 1440 minutes (24 hours). For instance, if the following is true:
11
+
This property shifts the interval between [startDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/startDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#startDayHour') and [endDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/endDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#endDayHour'). The **offset** value can range from `-1440` (24 hours behind) to `1440`(24 hours ahead).
12
12
13
-
- The offset is set to 240.
14
-
15
-
-**startDayHour** is 0 (default).
16
-
17
-
-**endDayHour** is 24 (default).
18
-
19
-
Then, the day starts and ends at 04:00 AM instead of 00:00.
20
-
21
-
You can combine this property with different values of **startDayHour**, **endDayHour**, and [cellDuration](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/cellDuration.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#cellDuration') to get the desired result. For example, the following code snippet uses all these properties, and as a result, the day starts at 4:40 AM and ends at 12:00 PM.
13
+
You can implement **offset** along with different **startDayHour**, **endDayHour**, and [cellDuration](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/cellDuration.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#cellDuration') combinations to customize views. The following code snippet integrates these properties to configure days from 4:40 AM to 11:40 AM and a 40-minute cell duration:
22
14
23
15
---
24
16
##### jQuery
@@ -57,15 +49,12 @@ You can combine this property with different values of **startDayHour**, **endDa
57
49
/>
58
50
</template>
59
51
60
-
<script>
61
-
// ...
62
-
</script>
63
-
64
52
##### React
65
53
66
-
<!-- tab: App.js -->
67
-
// ...
68
-
export default function App() {
54
+
<!-- tab: App.tsx -->
55
+
import { Scheduler } from 'devextreme-react/scheduler';
56
+
57
+
function App() {
69
58
return (
70
59
<Scheduler ...
71
60
offset="-20"
@@ -78,7 +67,12 @@ You can combine this property with different values of **startDayHour**, **endDa
78
67
79
68
---
80
69
81
-
[note] This property has no effect on the agenda view.
Copy file name to clipboardExpand all lines: api-reference/10 UI Components/dxScheduler/1 Configuration/views/offset.md
+14-19Lines changed: 14 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,15 @@ default: 0
5
5
---
6
6
---
7
7
##### shortDescription
8
-
Specifies the minute offset within the view indicating the starting point of a day.
8
+
Specifies the minute offset applied to configured day durations in the view.
9
9
10
10
---
11
-
This property moves the interval between [startDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/views/startDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/views/#startDayHour') and [endDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/views/endDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/views/#endDayHour'). The offset is a multiple of 5 and can range from -1440 minutes (-24 hours) to 1440 minutes (24 hours). For instance, if the following is true:
11
+
This property shifts the interval between [startDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/views/startDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/views/#startDayHour') and [endDayHour](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/views/endDayHour.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/views/#endDayHour'). The **offset** value can be between `-1440` (24 hours back) and `1440`(24 hours forward).
12
12
13
-
- The offset is set to 240.
14
-
15
-
-**startDayHour** is 0 (default).
16
-
17
-
-**endDayHour** is 24 (default).
18
-
19
-
Then, the day starts and ends at 04:00 AM instead of 00:00.
20
-
21
-
You can combine this property with different values of **startDayHour**, **endDayHour**, and [cellDuration](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/views/cellDuration.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/views/#cellDuration') to get the desired result. For example, the following code snippet uses all these properties, and as a result, the day starts at 4:40 AM and ends at 12:00 PM.
13
+
You can implement **offset** along with different **startDayHour**, **endDayHour**, and [cellDuration](/api-reference/10%20UI%20Components/dxScheduler/1%20Configuration/views/cellDuration.md'/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/views/#cellDuration') combinations to customize the view. The following code snippet integrates these properties to configure days from 4:40 AM to 11:40 AM and a 40-minute cell duration:
22
14
23
15
---
16
+
24
17
##### jQuery
25
18
26
19
<!-- tab: index.js -->
@@ -68,15 +61,12 @@ You can combine this property with different values of **startDayHour**, **endDa
68
61
</DxScheduler>
69
62
</template>
70
63
71
-
<script>
72
-
// ...
73
-
</script>
74
-
75
64
##### React
76
65
77
-
<!-- tab: App.js -->
78
-
// ...
79
-
export default function App() {
66
+
<!-- tab: App.tsx -->
67
+
import { Scheduler } from 'devextreme-react/scheduler';
68
+
69
+
function App() {
80
70
return (
81
71
<Scheduler ... >
82
72
<View
@@ -92,7 +82,12 @@ You can combine this property with different values of **startDayHour**, **endDa
92
82
93
83
---
94
84
95
-
[note] This property has no effect on the agenda view.
0 commit comments