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: CHANGELOG.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,17 @@ and this project adheres (more or less) to [Semantic Versioning](http://semver.o
7
7
8
8
## Unreleased
9
9
10
-
* Add unit argument to onZoom and onTimeChange callbacks
10
+
11
+
## 0.28.0
12
+
13
+
* Add unit argument to onZoom and onTimeChange callbacks @hckr#655
11
14
* Add `className` prop to Timeline component to override `react-calendar-timeline` class #682
12
-
* Fix injecting custom vertical line's class names for time periods longer than day
15
+
* support zoom level seconds #835@horizon-plaza
16
+
* custom buffer prop (help with controlled scrolling) @Ilaiwi
17
+
* Fix injecting custom vertical line's class names for time periods longer than day @RafikiTiki
18
+
* fix Context Menu unintentionally disabled by default @dsgipe#769
19
+
* delete props `headerLabelFormats` and `subHeaderLabelFormats` not you can pass `formatLabel` function to `DateHeader` with label width and start and end time of intervals
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
# ⚠️⚠️⚠️⚠️ HELP WANTED
2
+
please email me [[email protected]](mailto:[email protected]) and we will setup some time to speak and see if you can help maintain this library.
3
+
1
4
# React Calendar Timeline
2
5
3
6
A modern and responsive React timeline component.
@@ -140,6 +143,14 @@ The exact viewport of the calendar. When these are specified, scrolling in the c
140
143
141
144
**Note that you need to provide either `defaultTimeStart/End` or `visibleTimeStart/End` for the timeline to function**
142
145
146
+
## buffer
147
+
148
+
a number (default to 3) which represents the extra timeline rendered on right and lift of the visible area which the user will scroll through before the time rerenders.
149
+
150
+
more explication in section [behind the scenes](#behind-the-scenes)
151
+
152
+
Note: setting buffer to 1 will disable the scrolling on the timeline
153
+
143
154
## selected
144
155
145
156
An array with id's corresponding to id's in items (`item.id`). If this prop is set you have to manage the selected items yourself within the `onItemSelect` handler to update the property with new id's and use `onItemDeselect` handler to clear selection. This overwrites the default behaviour of selecting one item on click.
@@ -202,6 +213,7 @@ What percentage of the height of the line is taken by the item? Default `0.65`
202
213
203
214
Smallest time the calendar can zoom to in milliseconds. Default `60 * 60 * 1000` (1 hour)
204
215
216
+
__notes__: please note than second won't show up unless you change this to `60 * 1000`
205
217
## maxZoom
206
218
207
219
Largest time the calendar can zoom to in milliseconds. Default `5 * 365.24 * 86400 * 1000` (5 years)
@@ -915,7 +927,13 @@ by default we provide a responsive format for the dates based on the label width
915
927
mediumLong: 'HH:mm',
916
928
medium: 'HH:mm',
917
929
short: 'mm',
918
-
}
930
+
},
931
+
second: {
932
+
"long": 'mm:ss',
933
+
mediumLong: 'mm:ss',
934
+
medium: 'mm:ss',
935
+
"short": 'ss'
936
+
}
919
937
}
920
938
```
921
939
@@ -1236,6 +1254,8 @@ This results in a visually endless scrolling canvas with optimal performance.
1236
1254
1237
1255
Extensibility and usability: While some parameters (`onTimeChange`, `moveResizeValidator`) might be hard to configure, these are design decisions to make it as extensible as possible. If you have recipes for common tasks regarding those parameters, send a PR to add them to this doc.
1238
1256
1257
+
Note: 3x can be controlled by changing the buffer
1258
+
1239
1259
## Interaction
1240
1260
1241
1261
To interact and navigate within the timeline there are the following options for the user:
0 commit comments