Open MikeAlhayek opened 4 years ago
Hello,
I used a "dirty" workaround to achieve this.
1.) Replace the collapsed: true
(at "Hei Hei") with an unique ID, like "id":"NameOfDepartment"
2.) Create a "virtual" mouse-click on the CSS-class "topEdge" below this ID.
function showDepartment(deptID) {
document.getElementById(deptID).getElementsByClassName("topEdge")[0].click();
}
showDepartment("NameOfDepartment")
Disadvantage: The whole chart gets loaded at first and then hidden on a virtual click.
First of all, thank you for this great plugin!
I am wonder if there is away to show a middle node by default instead of the top-level. here is an example,
When the page first load, I want to show "Hei Hei" as the top level and the first node under it to show. If someone click on the up arrow on "Hei Hei" I want to show "Su Miao".