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

Timeline nested groups work incorrect if set them after timeline init #3126

Closed
ildarnm opened this issue Jun 2, 2017 · 4 comments
Closed
Assignees

Comments

@ildarnm
Copy link

ildarnm commented Jun 2, 2017

I take an example from http://visjs.org/examples/timeline/groups/nestedGroups.html and initialize the timeline before creating groups and elements
Http://jsfiddle.net/ildarnm/dkfo75f9/

@yociduo
Copy link

yociduo commented Jun 17, 2017

If you not set groupOrder, the order will reference id.
I have change your id, it work.

[
    {
      id: 1,
      content: "Lee",
      nestedGroups: [11,12,13]
    },
    {
      id: 20,
      content: "invisible group",
      visible: false
    },
    {
      id: 30,
      content: "John",
      nestedGroups: [34],
      showNested: false
    },
    {
      id: 40,
      content: "Alson"
    },
    {
      id: 11,
      content: "cook",
    },
    {
      id: 12,
      content: "shop",
    },
    {
      id: 13,
      content: "clean house",
    },
    {
      id: 34,
      content: "wash dishes",
    }
  ]

@marcortw
Copy link
Contributor

marcortw commented Jul 8, 2017

I just ran into this problem as well. Looking very much forward for a quick fix!

@bradh
Copy link
Contributor

bradh commented Jul 8, 2017

@marcortw While we try to fix everything, please understand its volunteer time, and there are a lot of things to address. So it will be dealt with when we are able.

@marcortw
Copy link
Contributor

marcortw commented Jul 9, 2017

@bradh Of course, I appreciate the efforts!

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

6 participants