이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== 그리드 통계행 표시/숨김 가이드 ====== 그리드 컴포넌트 통계행 표시/숨김 기능 예시 화면이다. 통계행 전체에 대한 표시/숨김 및 특정 통계행에 대한 표시/숨김 기능을 제공한다. 관련 속성으로 statistics_row_show가 있다. 관련 API로 getstatisticsrowshow, setstatisticsrowshow, ishiddenstatrow, setstatrowhidden이 있다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/GRID/grid_statrow_showhide 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/GRID/grid_statrow_showhide.xml|grid_statrow_showhide.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/GRID/grid_statrow_showhide.js|grid_statrow_showhide.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/GRID/grid_statrow_showhide|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/GRID/grid_statrow_showhide"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> // "setstatisticsrowshow" 버튼 이벤트 function btn_statisticsrowshow_on_mouseup(objInst) { // 그리드 statistics_row_show 속성 토글 처리 grdList.setstatisticsrowshow(!grdList.getstatisticsrowshow()); } // "setstatrowhidden" 버튼 이벤트 function btn_setstatrowhidden_on_click(objInst) { var stat_row_index; // 통계행 콤보박스에서 선택된 코드값을 구함 stat_row_index = cbo_statrowindex.getselectedcode(); // 개별 통계행 표시/숨김 토글 처리 grdList.setstatrowhidden(stat_row_index, !grdList.ishiddenstatrow(stat_row_index)); } </sxh> guide/component/grid/grid_statrow_showhide.txt 마지막으로 수정됨: 2023/08/28 15:47저자 127.0.0.1