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: docs/guides/configuration.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,20 +93,16 @@ The **Day** and **Week** view modes can be set in the following way:
93
93
- enables/disables an ability to overlay events `eventsOverlay: boolean`
94
94
- a step of moving events via d-n-d `timeStep: number`
95
95
- an array with start and end time of day `timeRange: array`
96
-
- a column width of the "hour" scale `hourScaleWidth: number`
97
-
- a row height of the "hour" scale `hourHeight: number`
98
96
- a space between events (px) `eventMargin: string`
99
97
- a right padding of the grid column (px) `columnPadding: string`
100
98
101
-
~~~jsx {3-10,15-29}
99
+
~~~jsx {3-8,13-27}
102
100
// settings of the "Day" and "Week" modes
103
101
constday_and_week_settings= {
104
102
eventHeight:40,
105
103
eventsOverlay:false,
106
104
timeStep:15,
107
105
timeRange: [9, 19],
108
-
hourScaleWidth:50,
109
-
hourHeight:40,
110
106
eventMargin:"20px", // if "eventsOverlay: false" only
111
107
columnPadding:"150px"
112
108
};
@@ -131,6 +127,31 @@ config: {
131
127
}
132
128
~~~
133
129
130
+
:::tip
131
+
The **hour height** of the time scale in **Day** and **Week** views is defined by the `--wx-event-calendar_hour-cell-height` css variable and can be specified in css:
This value can be modified at any time the event will adjust its position automatically and will be displayed at correct position relatively to the time scale.
140
+
141
+
The **hour width** of the time scale is defined by the `--wx-event-calendar_hour-scale-width` variable:
Copy file name to clipboardExpand all lines: docs/howtos.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,34 @@ In this section you can find out how to work with an events editor
117
117
|[Reordering inner events](api/internal/js_eventcalendar_setnext_method.md)| Learn how to add the inner event into the Event Bus order |
118
118
|[Subscribing on inner events](api/internal/js_eventcalendar_on_method.md)| Learn how to subscribe on the inner event |
119
119
120
+
## How to work with view modes
121
+
122
+
In this section you can find out how to configure and customize view modes
123
+
124
+
### Configuring the hour scale in Day/Week views
125
+
126
+
The **hour height** of the time scale in **Day** and **Week** views is defined by the `--wx-event-calendar_hour-cell-height` css variable and can be specified in css:
This value can be modified at any time the event will adjust its position automatically and will be displayed at correct position relatively to the time scale.
135
+
136
+
The **hour width** of the time scale is defined by the `--wx-event-calendar_hour-scale-width` variable:
0 commit comments