开发者

JavaScript treeviews with knockout.js [closed]

开发者 https://www.devze.com 2023-02-10 00:46 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinion开发者_如何学Cated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

I've been using knockout.js fairly effectively in my latest web-app, and it's great. However, I now need to implement a treeview, and the current contenders are here: http://www.programmingsolution.net/useful-js/jquery-treeview.php

JSTree is the one under current development, but seems to require to be initialised with html or json - under knockout, I ideally would like to have the ul list built automatically, and the treeview then automatically update after that. The "Treeview" one seems to be able to use an existing ul list, but has been deprecated

Has anyone else had any experience of using a treeview with knockout?


turns out this one does: http://bassistance.de/jquery-plugins/jquery-plugin-treeview/

so far, anyway.

hope this is of use to someone else


TreeView won't work with KnockoutJS, as both modify DOM model - you won't be able to access your observables from JSTree. Google for Knockout Kendo, it's a mashup of Knockout and Kendo, which will allow you to use TreeView in your Knockout based website.

EDIT: However, note that Kendo is under GNU-GPL license, which means, IIRC, that you would have to publish your website as open-source.

0

精彩评论

暂无评论...
验证码 换一张
取 消