Contents
see List작성일 2015. 06. 16.
node.isSelected(); 리턴값 boolean 얘 선택 돼있니?
node.select(true); 얘 선택해라
node.select(false); 얘 선택해제해라
$("#lectTreeDiv").dynatree("getSelectedNodes"); 저 트리중에서 선택된 애들 가져와라(객체는 제이쿼리 객체가 됨)
node.getParent(); 얘 부모 데려와
node.data.icon = false; 아이콘 필요없어
node.data.icon = "folderopen.gif"; 아이콘 쟤로 지정해
node.getChildren(); 쟤 자식 데려와
var tree = $("#tree").dynatree("getTree"); 저 엘리멘트 트리가져와
var node = tree.getNodeByKey("key7654"); 저키로 노드가져와
var rootNode = $("#tree").dynatree("getRoot"); 저 엘리멘트의 룻노드가져와
node.addChild({title: "New Node", key: "3333"}); 쟤한테 자식 추가해
node.addChild({title: "New Node", key: "3333"}); 쟤한테 자식 추가해
node.countChildren(); 모든 하위자식들 숫자구해라
node.getLevel(); 쟤 깊이 구해라 룻이 1
node.getNextSibling(); 다음노드(같은 레벨)
node.getPrevSibling(); 이전 노드(같은 레벨)
node.hasChildren(); 자식있냐?
node.isFirstSibling(); 너 첫째 노드니(같은 레벨)
node.isExpanded(); 너 까발려있니?
node.isExpanded(); 너 까발려있니?
node.isFocused(); 너 포커스상태니?
node.isLastSibling(); 너 마지막 객체니?
node.move(targetNode, mode) 이동시켜라
child: 마지막 자식으로 보내라
before: 이전으로 보내라
after: 다음으로 보내라
node.remove(); 저 노드 삭제해라
node.removeChildren(); 저 노드 자식 다지워라
node.sortChildren(cmp, deep) 자식 정렬
Sort child list by title.
cmd: optional compare function. If ommitted sorting is done by node titles.
deep: optional: pass true to sort all descendant nodes.
Example
// Custom compare function (optional) that sorts case insensitive
var cmp = function(a, b) {
a = a.data.title.toLowerCase();
b = b.data.title.toLowerCase();
return a > b ? 1 : a < b ? -1 : 0;
};
node.sortChildren(cmp, false);
$("#tree").dynatree("getRoot").visit(function(node){ 하위노드들 까지 포문
node.expand(true);
});
node.visitParents(fn, includeSelf) 위로 포문
node.isChildOf(otherNode) 바로밑 자식중에 얘가있니
node.isDescendantOf(otherNode) 하위노드중에 존재하니
node.isVisible() 안지워졌니
javascript
| No | 작성일 | Title |
|---|---|---|
| 3384 | 2026. 08. 21. | Node.js API에서 요청 취소를 제대로 처리하는 방법: AbortSignal로 외부 작업 정리하기 |
| 3352 | 2026. 08. 13. | Node.js 응답이 간헐적으로 느릴 때: 이벤트 루프 지연 측정과 CPU 작업 분리 방법 |
| 3320 | 2026. 08. 04. | JavaScript fetch 요청을 안전하게 만드는 방법: timeout·재시도·오류 처리 실전 패턴 |
| 3288 | 2026. 07. 27. | Node.js 서버 무중단 배포를 위한 Graceful Shutdown 구현 가이드 |
| 3257 | 2026. 07. 19. | Node.js 대용량 파일 처리 가이드: 스트림과 backpressure로 메모리 사용량 제어하기 |
| 3232 | 2026. 07. 11. | Node.js 실무형 에러 처리: async/await에서 실패를 일관되게 분류하고 복구 속도 높이기 |
| 3174 | 2026. 07. 02. | Node.js 환경 변수 검증 가이드: process.env를 안전한 설정 객체로 바꾸기 |
| 3123 | 2026. 06. 24. | TypeScript 타입 좁히기 운영 가이드: unknown 입력을 안전한 도메인 객체로 바꾸기 |
| 3065 | 2026. 06. 16. | 브라우저 성능 병목 찾기: PerformanceObserver로 LCP·INP·긴 작업 로그 수집하기 |
| 2978 | 2026. 06. 08. | Node.js fetch 타임아웃과 재시도 설계: 외부 API 장애 전파 줄이기 |