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

expandToLevel & link web page #75

Closed
c3jack opened this issue Apr 16, 2019 · 1 comment
Closed

expandToLevel & link web page #75

c3jack opened this issue Apr 16, 2019 · 1 comment
Labels
answered question Further information is requested

Comments

@c3jack
Copy link

c3jack commented Apr 16, 2019

I would like to know if there is parameters like expandToLevel and web page link using address TAG just like the GetOrgChart

@plamen-peshev
Copy link
Contributor

expandToLevel is renamed to collapse

there are two ways to set nodes in collapsed mode

  1. using collapse and expand options
    collapse: {
              level: 2,
              allChildren: true
    },
  1. using tags
      tags: {
            "hide": {
                state: OrgChart.COLLAPSE
            }
        },
        ....
        nodes: [
            { id: "1", name: "Amber McKenzie", title: "CEO", img: "//balkangraph.com/js/img/1.jpg" },
            { id: "2", tags: ["hide"], name: "Ava Field", title: "IT Manager", img: "//balkangraph.com/js/img/2.jpg" },
            { id: "3", name: "Rhys Harper", title: "Marketing Team Lead", img: "//balkangraph.com/js/img/3.jpg" }
            ...
        ]

Read more

@ZornitsaPesheva ZornitsaPesheva added answered question Further information is requested labels Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants