이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== 트리그리드 정렬 대상 가이드 ====== 트리그리드 컴포넌트 정렬 대상에 대한 예시 화면이다. 트리그리드의 행은 자식인 있는 행과 자식이 없는 행(Leaf-Row)로 구분된다. 트리그리드의 정렬시 전체 행을 Depth 정보를 기준으로 모두 정렬을 수행할 지, 자식인 없는 행만 정렬을 수행할 지 지정 기능을 제공한다. 관련 속성으로 treegrid_sort_target가 있다. 관련 API로 gettreegridsorttarget, settreegridsorttarget가 있다. 관련 실행파라미터로 TREEGRID_SORT_TARGET이 있다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/TREEGRID/treegrid_sorttarget 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/TREEGRID/treegrid_sorttarget.xml|treegrid_sorttarget.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/TREEGRID/treegrid_sorttarget.js|treegrid_sorttarget.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/TREEGRID/treegrid_sorttarget|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/TREEGRID/treegrid_sorttarget"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> // "settreegridsorttarget" 버튼 이벤트 function btn_settreegridsorttarget_on_click(objInst) { var sort_target; // treegrid_sort_target 속성값을 구하여 표시 sort_target = grd_sorttarget.gettreegridsorttarget(); factory.consoleprint("before sort_target = " + sort_target); // treegrid_sort_target 속성값 설정 grd_sorttarget.settreegridsorttarget(cbo_sorttarget.getselectedcode()); // treegrid_sort_target 속성값을 구하여 표시 sort_target = grd_sorttarget.gettreegridsorttarget(); factory.consoleprint("after sort_target = " + sort_target); } </sxh> guide/component/treegrid/treegrid_sorttarget.txt 마지막으로 수정됨: 2023/12/26 13:04저자 127.0.0.1