JavaScript & jQuery & Ajax

[js/jQuery] jsTree, TreeView

라임오렌지원 2023. 1. 25. 11:34

https://www.jstree.com/

 

jstree

jsTree is jquery plugin, that provides interactive trees. It is absolutely free, open source and distributed under the MIT license. jsTree is easily extendable, themable and configurable, it supports HTML & JSON data sources and AJAX loading.

www.jstree.com

jsTree is jquery plugin, that provides interactive trees. It is absolutely free, open source and distributed under the MIT license. jsTree is easily extendable, themable and configurable, it supports HTML & JSON data sources and AJAX loading.

 

jsTree는 jQuery 플러그인이며, 상호적인(대화형) 트리를 제공한다.

jsTree는 쉽게 확장할 수 있고, 설정할 수 있으며, HTML과 JSON 데이터 소스와 AJAX 로딩을 지원한다.

 

treeView

var jsonData = [
	{ "id" : "test1", "parent" : "#", "text" : "One Directory" },
	{ "id" : "test2", "parent" : "#", "text" : "Node Directory" },
	{ "id" : "test3", "parent" : "test2", "text" : "Child 1" },
	{ "id" : "test4", "parent" : "test2", "text" : "Child 2" }
];

$("#menu").jstree({
	'core' : {
    	data : jsonData,
        "cehck_callback" : true,
        'themes' : {
		"theme" : "default",
		"dots" : false,
		"icons" : false
        }
    },
    'types' : {
    	"root" : {
        	"icon" : { "image" : "http://static.jstree.com/v.1.0rc/_docs/_drive.png" }
    	}
    },
    'plugins' : [
    	'dnd', 'search', 'types', 'themes'
    ]
})
.on('loaded.jstree', function(event, data){
	$("#menu").jstree('open_all');
});

 

jsTree에 추가할 plugins 도 공식문서에서 예시를 찾아, 활용할 수 있다.

https://old.jstree.com/documentation

 

jsTree » Documentation

jsTree - jquery tree plugin Description jsTree: ♦  is a javascript based, cross browser tree component. It is packaged as a jQuery plugin. ♦  is absolutely free (licensed same as jQuery – under the terms of either the MIT License or the GPL v2 Li

old.jstree.com

 


참고사이트

 

https://developing-stock-child.tistory.com/38

 

[JavaScript] jsTree plugin으로 TreeView 구현

[JavaScript] jsTree plugin으로 TreeView 구현 jsTree란? - jsTree is jquery plugin, that provides interactive trees. It is absolutely free, open source and distributed under the MIT license. jsTree is easily extendable, themable and configurable, it sup

developing-stock-child.tistory.com

 

https://bongjava.tistory.com/entry/jsTree-jsTree-plugin-%EC%95%8C%EC%95%84%EB%B3%B4%EA%B8%B0

 

[jsTree] jsTree plugin 알아보기

jsTree plugins 종류가 아래와 같다. 이중 checkbox, contextmenu(오른쪽메뉴), dnd(드레그앤드롭), search(검색) 정도만 테스트 해볼 예정이다. checkbox Root node 1 Child node 1 Child node 2 Root node 2 contextmenu(오른쪽마

bongjava.tistory.com

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=qqiwan&logNo=221481422594 

 

[Javascript] jsTree 사용법 및 Tree 자료구조

* 출처: https://tonyne.jeju.onl/2016/08/29/javascript-howtouse-jstree-tree-structure/ jsTree는 jque...

blog.naver.com

 

728x90

'JavaScript & jQuery & Ajax' 카테고리의 다른 글

[js/jQuery] radio button event (button.checked)  (0) 2023.01.19
[Ajax] ajaxSetup()  (0) 2022.10.05
[js] preventDefault() stopPropagation()  (0) 2022.09.27
정규표현식 정리  (0) 2022.08.25
[JS/jQuery] append(), html()  (0) 2022.08.18