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

Multiple instance #14

Closed
toreba opened this issue Jun 26, 2018 · 7 comments
Closed

Multiple instance #14

toreba opened this issue Jun 26, 2018 · 7 comments

Comments

@toreba
Copy link

toreba commented Jun 26, 2018

Hi

I'm trying to add multiple instance of network on the same page. This almost works, but calling methods via $refs.networkA.... gets mixed up.

As far as I can see, the reason is the module variable "network" inside Network.vue. It will point to the last instance created.

@alexcode
Copy link
Owner

@Menighin, any idea on this ?

@Menighin
Copy link
Contributor

Hi @alexcode and @toreba,

I've been really busy last few weeks. This is on my "to-do" list. Will try to have a look this week.

@ohjeohje
Copy link

Same problem with timeline.

@Menighin
Copy link
Contributor

@alexcode I think if we change it back as a ""hidden property"" as it was here it may work. Maybe is the same solution for timeline. Will do some testing today. Do you remember having any downsides with this approach?

@alexcode
Copy link
Owner

I guess this is fixed by the PR.

@Menighin
Copy link
Contributor

We still need to fix for the other components though.
Will do it today (Y)

@vakrolme
Copy link

I think the problem might be still present with at least the 'format' property/function as demonstrated here: https://jsfiddle.net/mb8ypnvz/

I have two timelines and I want them to have different label formatting. When I set options.format on timeline_2, it affects timeline_1 as well.

Any way to fix it?

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

No branches or pull requests

5 participants