0
我需要使用jsTree的不同「search_method」。至少有3個功能:如何在一個應用程序中對jsTree使用不同的「search_method」?
- 「jstree_title_contains」
- 「包含」
- 「jstree_contains」
例如,如果我點擊第一個按鈕search_method應更改爲 「jstree_title_contains」 。 如果我點擊第二個按鈕,search_method應該改爲「jstree_contains」。
我該怎麼做?
所以,如果我有一個id = 「樹」 我只是嘗試$( '#樹')._ get_settings()search.search_method = 'jstree_title_contains'。我對嗎 ? – 2012-01-10 18:45:46
你必須先獲得參考。你有沒有像上面那樣嘗試過? – glortho 2012-01-10 19:08:31
謝謝。有用! – 2012-01-10 19:35:24