이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== tabitem_xbutton 속성 가이드 ====== 탭 tabitem_xbutton 속성 예시 화면이다. tabitem_xbutton 속성을 이용하여 탭 아이템 닫기 버튼 표시 여부를 설정한다. 관련 속성으로 tabitem_xbutton, tabitem_xbutton_horzalign, tabitem_xbutton_horzmargin가 있다. 관련 속성으로 tabitem_xbutton_width, tabitem_xbutton_customclass가 있다. 관련 API으로 gettabitemxbutton, settabitemxbutton, gettabitemxbuttonhorzalign, settabitemxbuttonhorzalign이 있다. 관련 API으로 gettabitemxbuttonhorzmargin, settabitemxbuttonhorzmargin, showtabitemxbutton가 있다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/TAB/tab_itemxbutton 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/TAB/tab_itemxbutton.xml|tab_itemxbutton.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/TAB/tab_itemxbutton.js|tab_itemxbutton.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/TAB/tab_itemxbutton|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/TAB/tab_itemxbutton"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> // "showtabitemxbutton" 버튼 이벤트 function btn_xbutton_on_click(objInst) { // 탭 아이템 닫기 버튼 표시 여부 토글 처리 if (this.tab.gettabitemxbutton() == true) { this.tab.showtabitemxbutton(false); } else { this.tab.showtabitemxbutton(true); } } // "get/settabitemxbuttonhorzalign" 버튼 이벤트 function btn_horzalign_on_click(objInst) { // 탭 아이템 닫기 버튼 수평 정렬 위치 토글 처리 if (this.tab.gettabitemxbuttonhorzalign() == 0) { this.tab.settabitemxbuttonhorzalign(1); } else { this.tab.settabitemxbuttonhorzalign(0); } } // "get/settabitemxbuttonhorzmargin" 버튼 이벤트 function btn_margin_on_click(objInst) { // 수평 여백 설정 this.tab.settabitemxbuttonhorzmargin(this.fld_margin.gettext()); } </sxh> guide/component/tab/tab_itemxbutton.txt 마지막으로 수정됨: 2024/07/04 16:45저자 127.0.0.1