Skip to content

How can i add a new tree to the same div? #25

@LaNoriainnova

Description

@LaNoriainnova

im building a dynamic tree for this i call a method which builds the tree, but when i call the same function so it can build the new tree when a get to the part of $('#tree').bstreeview({data: json});
it dosen't do nothing

// this is just an example

function buildsTreeDyanamic(){
// the values of this json changes every time the function is call
var mydynamictree = [
{
icon: "fa fa-globe fa-fw",
text: "Go to Google",
class: "text-info",
href: "https://google.com"
}
];
// it does print the tree ithe first time, but when a clean that div and call the function again the tree dosen´t appear
$('#tree').bstreeview({data: mydynamictree });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions