Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Timeline: Is there a method when items become visible? #1360

Closed
tsnolan23 opened this issue Oct 12, 2015 · 3 comments
Closed

Timeline: Is there a method when items become visible? #1360

tsnolan23 opened this issue Oct 12, 2015 · 3 comments

Comments

@tsnolan23
Copy link

tsnolan23 commented Oct 12, 2015

I noticed that when the timeline is loaded, only items that are visible within the current date range are added to the DOM on page load. Then, as you change the range and more items become visible, they are automatically added to the DOM.

Is there a method that can be used to perform a function when those items are added to the DOM? onAdd only seems to work if the user adds something, not when the item is automatically visible.

@mast0r
Copy link

mast0r commented Oct 14, 2015

There is a method timeline.getVisibleItems() that returns an array with all visible items.

@josdejong
Copy link
Contributor

There is no hook available to know when an item was rendered in the DOM or removed from the DOM.

Where do you need such a hook for exactly?

@yotamberk
Copy link
Contributor

@tsnolan23 Is this issue still relevant? Can we close this issue?

@mojoaxel mojoaxel closed this as completed Nov 1, 2016
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

5 participants