Skip to content

Commit 4ca5137

Browse files
authored
Row renderer (namespace-ee#673)
Row renderer
2 parents be32100 + 930d4b8 commit 4ca5137

File tree

86 files changed

+5889
-2117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+5889
-2117
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,44 @@ and this project adheres (more or less) to [Semantic Versioning](http://semver.o
77

88
## Unreleased
99

10+
### Fixes and Improvements
11+
12+
- create local stack context for z-index @ilaiwi
13+
- huge performance improvements @ilaiwi
14+
- [new examples](https://github.com/namespace-ee/react-calendar-timeline/tree/rowRenderer/examples)
15+
- `z-index`: removed for vertical lines, cursor line, horizontal lines
16+
17+
### New features
18+
19+
#### [rowRenderer](https://github.com/namespace-ee/react-calendar-timeline/tree/rowRenderer#row-renderer)
20+
21+
This API would give you control to add custom UI on calendar rows using a render prop. You can control what is rendered by default with the library like Items and Vertical/Horizontal lines, and the renderer will provide you the ability to render custom backgrounds and droppable layers for custom dnd.
22+
23+
#### [`hideHorizontalLines` prop](https://github.com/namespace-ee/react-calendar-timeline/tree/rowRenderer#hidehorizontallines)
24+
25+
Boolean to hide or show HorizontalLines. `true` by default. Hiding the horizontalLines will have a good impact on performance.
26+
27+
#### [helpers](https://github.com/namespace-ee/react-calendar-timeline/tree/rowRenderer#helpers)
28+
29+
Helpers are methods provided by `HelperContext`. These helpers power most of the rendered UI in the timeline like: Headers, Markers, Items and row renderers.
30+
31+
### breaking changes
32+
33+
- `onItemMove`
34+
35+
changed from `onItemMove(itemId, dragTime, newGroupOrder)` to `onItemMove(itemId, dragTime, newGroupId)`. Now you will be provided with a new group id instead of new group order
36+
37+
- `onItemDrag`
38+
39+
changed from providing `newGroupOrder` to `newGroupId`. Now you will be provided with a new group id instead of new group order
40+
41+
- saving state in `Item` using `itemRenderer`
42+
43+
if you render a stateful component via `itemRenderer` then the state will be lost because item will unmount in some cases
44+
45+
- You need to do `e.stopPropagation()` for all callbacks passed to `itemRenderer`
46+
47+
1048
## 0.26.6
1149

1250
* fix `visibleTimeStart`, `visibleTimeEnd` and `onTimeChange` not working as expected in controlled mode @ilaiwi

0 commit comments

Comments
 (0)