이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== 스핀넘버 기본가이드 ====== 스핀넘버 컴포넌트에 대한 기본 기능 예시 화면이다. 스핀넘버 컴포넌트는 스핀버튼 및 위/아래 화살표 키 입력을 이용하여 특정 단위로 값을 변경하는 기능을 제공한다. 스핀넘버 컴포넌트 기본 속성에는 min_value, max_value, spin_step, spin_wrap, spin_type이 있다. 스핀넘버 컴포넌트 기본 API에는 gettext, settext가 있다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/SPINNUMBER/spinnumber_basic 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/SPINNUMBER/datepicker_basic.xml|spinnumber_basic.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/SPINNUMBER/datepicker_basic.js|spinnumber_basic.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/SPINNUMBER/spinnumber_basic|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/SPINNUMBER/spinnumber_basic"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> function btn_gettext_on_mouseup(objInst) { // 스핀넘버의 값을 구함 screen.alert(this.spn_basic.gettext()); } function btn_settext_on_mouseup(objInst) { // 스핀넘버에 값을 설정 this.spn_basic.settext("15"); } </sxh> guide/component/spinnumber/spinnumber_basic.txt 마지막으로 수정됨: 2023/10/30 14:20저자 127.0.0.1