Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

MultiSelect possible even if multiSelect: false #115

Open
@SplendidMinds

Description

@SplendidMinds

Hey Community,

I have a TreeView which is using lazyLoad to navigate through the layers. Even so I have set multiSelect to false, multiSelection is still possible. Can anybody explain to me what am I doing wrong? Thank you.

var initSelectableTree = function() { return $('#treeview-selectable').treeview({ levels: 1, data: json, multiSelect: false, lazyLoad: function (node, dataHandler) { console.log(node); $.ajax({ url: "copy_tree_lazy.php?level=" + (node.level+1) + "&parentid=" + (node.id), type: "POST", dataType: "json", async: true, success: function(data){ dataHandler(data); } }); }, color: "#111152", showTags: true, showImage: true, highlightSelected: true, selectedColor: "#111152", selectedBackColor: "#F7E297", onhoverColor: '#E2E2F9', onNodeSelected: function (event, node) { selectItem(node.level,node.id); } }); };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions