Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeline: Add custom type of items #40

Closed
aparshin opened this issue Nov 6, 2012 · 3 comments
Closed

Timeline: Add custom type of items #40

aparshin opened this issue Nov 6, 2012 · 3 comments
Labels

Comments

@aparshin
Copy link
Contributor

aparshin commented Nov 6, 2012

Is there any way to add custom types of timeline items along with current 'box', 'range' and 'dot'. I've found something like internal interface for that (links.Timeline.Item), but can't find API function to add new types.

Do you have/plan such functionality?

@josdejong
Copy link
Contributor

There is currently no functionality to define your own type of items, and there are no plans for that so far.

You have all freedom to style the three available types though (box, range, dot), see the documentation on styles: http://almende.github.com/chap-links-library/js/timeline/doc/#Styles

@aparshin
Copy link
Contributor Author

aparshin commented Nov 7, 2012

Styling available types is not always enough. In my case, new item's type is just thin vertical line, which displays content when mouse hovers it. I've created new implementation of links.Timeline.Item and add new case line in links.Timeline.createItem, but it would be nice to make such extensions without core modification...

@josdejong
Copy link
Contributor

Having the availability to add your own type of items to the Timeline is a nice idea, that will make the Timeline more flexible. Thanks for your suggestion.

@aparshin aparshin mentioned this issue Nov 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants