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.

Selectable option don't work #105

Open
@Taroxx

Description

@Taroxx

Hi! I have discovered, that the selectable option don't work.

jQuery('#tree').treeview({
    "showBorder": false,
    "selectable": false,    // Dont work!!!
    "showCheckbox": true,
    "checkable": true,
    "levels": 1,
    "uncheckedIcon": "fa fa-square-o",
    "checkedIcon": "fa fa-check-square-o",
    "collapseIcon": "fa fa-minus-square-o",
    "expandIcon": "fa fa-plus-square-o",
    "checkboxFirst": true,
    "hierarchicalCheck": true,
    "partiallyCheckedIcon": "fa fa-caret-square-o-right",
    "propagateCheckEvent": true,
    "nodeIcon": "glyphicon glyphicon-user",
    "wrapNodeText": true,
    "showTags": true,
    "data": [{
        "icon": "glyphicon glyphicon-user",
        "text": "Parent 1",
        "nodes": [{"text": "Child 1", "icon": null}, {"text": "Child 2", "icon": null}]
    }, {
        "text": "Parent 2",
        "nodes": [{"text": "Child 3", "showBorder": true, "selectable": true, "icon": null}, {
            "text": "Child 4",
            "showBorder": false,
            "selectable": false,
            "icon": null
        }, {"text": "Child 1", "icon": null}],
        "icon": null
    }, {
        "text": "Parent 6",
        "nodes": [{"text": "Child 5", "icon": null}, {"text": "Child 4", "icon": null}, {
            "text": "Child 3",
            "icon": null
        }],
        "icon": null
    }]
});

However, if this are written to the node section, it is works fine.

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