트리 확장/접기 이벤트 발생 순서 (event flow)

트리 확장/접기 시 이벤트 발생 순서입니다.

마우스 사용

onMouseDownonMouseUponClickonBeforeExpand → 동작 완료 → onAfterExpandonAfterClick

showTreeLevel() 함수 호출

onBeforeExpand → 동작 완료 → onAfterExpand

이벤트별 시점 및 용도

이벤트 시점 용도
onBeforeExpand 확장/접기 전 동작 취소 (return true)
onAfterExpand 확장/접기 완료 후 완료 후 처리

Read More