이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== tabitemarea_leftmargin 속성 가이드 ====== 탭 tabitemarea_left/right/top/bottommargin 속성 예시 화면이다. 탭 tabitemarea_*margin 속성은 tabitem_position 속성값을 기준으로, 탭 아이템 영역(tab item area)의 좌/우, 상/하의 여백을 설정한다. 관련 속성으로 tabitemarea_leftmargin, tabitemarea_rightmargin, tabitemarea_topmargin, tabitemarea_bottommargin가 있다. 관련 API로 gettabitemareamargin, settabitemareamargin가 있다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/TAB/tab_tabitemareamargin 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/TAB/tab_tabitemareamargin.xml|tab_tabitemareamargin.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/TAB/tab_tabitemareamargin.js|tab_tabitemareamargin.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/TAB/tab_tabitemareamargin|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/TAB/tab_tabitemareamargin"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> // "get/settabitemareamargin" 버튼 이벤트 function btn_margin_on_click(objInst) { // 탭 아이템 영역 좌측/우측 여백 설정 this.tab.settabitemareamargin(this.fld_Lmargin.gettext(), this.fld_Rmargin.gettext()); // 탭 아이템 영역 좌측/우측 여백 로깅 factory.consoleprint("탭 아이템 영역 좌측 마진 : " + this.tab.gettabitemareamargin(0)); factory.consoleprint("탭 아이템 영역 우측 마진 : " + this.tab.gettabitemareamargin(1)); } </sxh> guide/component/tab/tab_tabitemareamargin.txt 마지막으로 수정됨: 2024/07/11 13:05저자 127.0.0.1