react-calendar-timeline
Advanced tools
Changelog
0.23.0
canMove
prop gets ignored #484 - @acemac + @ilaiwinow you can stack choose to stack items in individual groups by providing the property stackItems
in group object. The property in group overrides the timeline prop stackItems
.
const groups = [{ id: 1, title: 'group 1', stackItems: false }, { id: 2, title: 'group 2', stackItems: true }]
const items = [
{
id: 1,
group: 1,
title: 'item 1',
start_time: moment(),
end_time: moment().add(1, 'hour')
},
{
id: 2,
group: 2,
title: 'item 2',
start_time: moment().add(-0.5, 'hour'),
end_time: moment().add(0.5, 'hour')
},
{
id: 3,
group: 1,
title: 'item 3',
start_time: moment().add(2, 'hour'),
end_time: moment().add(3, 'hour')
}
]
ReactDOM.render(
<div>
Rendered by react!
<Timeline
groups={groups}
items={items}
defaultTimeStart={moment().add(-12, 'hour')}
defaultTimeEnd={moment().add(12, 'hour')}
/>
</div>,
document.getElementById('root')
)
Changelog
0.22.0
groupLabelKey
to allow splitting of the key used to render the Sidebar and the InfoLabel visible during drag operations. groupTitleKey
continues to be used to render the Sidebar. #442 @thiagosatoshigetResizeProps
take leftClassName
and rightClassName
and returns className for left and right props @acemacitemTitle
and itemDivTitle
issue @acemacChangelog
0.21.0
right_sidebar
to rightTitle
in readme @maxlibinrct
to .top-header
and .bottom-header
to become .rct-top-header
and .rct-bottom-header
@Simekreact@16.3
@acemacChangelog
0.20.0
date
prop on a CustomMarker
changes the marker will now move on the timeline - #421 kevinmanncito ilaiwi####dev
react-testing-library
version 5toBeInDom
Changelog
0.19.0
scrollRef
to allow for programmatically scrolling timeline - #372Changelog
0.18.2
onCanvasClick
not fired - #383Changelog
0.18.1
Changelog
0.18.0
headerLabelFormats
and subHeaderLabelFormats
- #362TimelineMarkers
section of README for documentation - #327showCursorLine
prop in favor of using the CursorMarker
component. See TimelineMarkers
section of README for documentation.import Timeline,
+ {TimelineMarkers, CursorMarker}
from 'react-calendar-timeline'
<Timeline
- showCursorLine
- />
+ >
+ <TimelineMarkers>
+ <CursorMarker />
+ </TimelineMarkers>
+ </Timeline>