Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Is there an API? Do the elements support drag n drop? #121

Open
bingle87 opened this issue Feb 4, 2020 · 3 comments
Open

Is there an API? Do the elements support drag n drop? #121

bingle87 opened this issue Feb 4, 2020 · 3 comments

Comments

@bingle87
Copy link

bingle87 commented Feb 4, 2020

Can someone lease point me to documentation. Thanks.

@jsomsanith-tlnd
Copy link

I am trying to look at this lib too, but it doesn't seem to have any documentation, and it doesn't seem maintained neither :(
Is there any maintainer who can prove me wrong ?

@RailsCod3rFuture
Copy link

This is the best looking timeline plugin and its impossible to utilize..............Would love to know how to show the days underneath the month and add tracks with a button click.

@atkinchris
Copy link
Collaborator

Sorry there's no API documentation for the components - the library is largely unmaintained at the moment. A demo is included, that was originally written to showcase the timeline internally.


@RailsCod3rFuture - you can add other rows to the timebar by passing them in to the timebar prop. A good example is the quarters and months seen in the demo here: https://github.com/JSainsburyPLC/react-timelines/blob/master/demo/src/builders.js#L51-L65. Each cell takes an start and end Date for it's width.

Adding tracks with a button click would be very similar. Your application controls the tracks that are shown, by passing them as an array in the tracks prop. You can add, remove and rearrange elements in this array as you like - the timeline will just rerender.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants