1

有谁很了解 JsTree jQuery 插件吗?

我已经实现了它,并让它在大多数基本功能上都能正常工作,但现在我希望能够使用该功能来删除和创建新文件夹。我在文档中找不到有关如何执行此操作的信息。

这是我现在使用它的方法: $("#divLeftPane") .bind("reselect.jstree", function () {

                if ($(".jstree-clicked").length == 0)
                    url = "";
                else
                    url = "?url=" + $(".jstree-clicked").attr("rel");
                loadFiles(url);
                $("#currentDir").val($(".jstree-clicked").attr("rel"));


                $("a").click(function () {
                    url = "?url=" + $(this).attr("rel");
                    loadFiles(url);
                    $("#currentDir").val($(this).attr("rel"));
                });
            }).jstree({
                "html_data": {
                    "ajax": {
                        "url": "/Customers/Directories/"
                    }
                },
                "ui": {
                    "select_limit": 2,
                    "select_multiple_modifier": "alt",
                    "selected_parent_close": "select_parent"//,
                    //                  "initially_select": ["phtml_2"]
                },
                "themes": {
                    "theme": "classic",
                    "dots": false,
                    "icons": true
                },

                "plugins": ["themes", "html_data", "ui", "cookies"]
            });
};
4

1 回答 1

0

糟糕,没有仔细阅读文档,它位于名为 CRRM 的插件之一下(也许这个名字让我有点失望 :-))http://www.jstree.com/documentation/crrm

于 2010-09-03T10:22:04.723 回答