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

Custom fields to newly added item #2863

Closed
asgardia7 opened this issue Mar 15, 2017 · 3 comments
Closed

Custom fields to newly added item #2863

asgardia7 opened this issue Mar 15, 2017 · 3 comments
Assignees

Comments

@asgardia7
Copy link

Hello,

I talk about the timeline. It's my first use. I was being able to initate the timeline with DataSet. Those items contained custom field in the object for later use in my template function. It works properly.

Now when I create new item through drag and drop, I see the custom field I pass to e.originalEvent.dataTransfer.setData disapear on the road. Looking through the code, I've seen that the _onAddItem event listener on ItemSet create a newItemData so my custom fields or lost.
Line 23 831 on the vis.js generated file in dist.

How could I store custom fields in the newly created item as I use them to generate the content?

Thanks

@asgardia7 asgardia7 changed the title Custom field to newly added item Custom fields to newly added item Mar 15, 2017
@yotamberk yotamberk self-assigned this Mar 18, 2017
@yotamberk
Copy link
Contributor

@asgardia7 Thanks for reporting! Legit request. I'm on it.

@yotamberk
Copy link
Contributor

Solved with #2872

@asgardia7
Copy link
Author

Nice,

For now, I modified directly the vis.js file for my purpose. Or is there any workaround without modifying this js?

Thanks,

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