sitelink1 | |
---|---|
sitelink2 | |
sitelink3 | http://1 |
버튼의 종류
a(앵커)
페이지 이동에 사용된다.
1 | < a href = "index.html" data-role = "button" >Link button</ a > |
1 | < a href = "index.html" data-role = "button" data-mini = "true" >Link button</ a > |
Form 버튼
Form의 버튼인 <input type="button" /> 이나 <button></button> 등은 data-role를 지정하지 않아도 자동으로 버튼 컴포넌트로 변환된다.
버튼의 아이콘
아이콘의 종류
버튼에 아이콘을 표시하고 싶다면 data-icon 속성을 사용한다.
버튼 아이콘의 위치
data-iconpos 속성의 값을 left, right, top, bottom으로 지정해서 아이콘의 위치를 변경한다.
아래는 data-iconpos="top"으로 한 예제
참고
http://jquerymobile.com/demos/1.1.0/docs/buttons/buttons-icons.html
버튼의 그룹핑
1 2 3 4 5 | < div data-role = "controlgroup" > < a href = "index.html" data-role = "button" >Yes</ a > < a href = "index.html" data-role = "button" >No</ a > < a href = "index.html" data-role = "button" >Maybe</ a > </ div > |
1 2 3 4 5 | < div data-role = "controlgroup" data-type = "horizontal" > < a href = "index.html" data-role = "button" >Yes</ a > < a href = "index.html" data-role = "button" >No</ a > < a href = "index.html" data-role = "button" >Maybe</ a > </ div > |
버튼의 테마
버튼의 테마는 data-theme 속성에 a,b,c,d,e 값을 부여해서 지정한다.
1 | < a href = "index.html" data-role = "button" data-theme = "a" >Theme a</ a > |
아래는 각 테마별 버튼의 디자인
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
18 | Google Map에 현재 위치 주변의 음식점 표시하기 | 황제낙엽 | 2017.01.23 | 8703 |
17 |
Google Maps Geolocation API를 이용한 현재위치 검색
![]() | 황제낙엽 | 2017.01.14 | 392 |
16 | cordova 플러그인을 이용하여 GPS 활성화 | 황제낙엽 | 2017.01.14 | 672 |
15 |
모바일 크롬에서 단축 아이콘 생성 - WebApp 만들기
![]() | 황제낙엽 | 2016.12.03 | 228 |
14 | [JS] navigator geolocation 현재 접속 위치 가져오기 | 황제낙엽 | 2016.12.03 | 232 |
13 |
Geolocation API를 이용해 위치 정보를 알아내기
![]() | 황제낙엽 | 2016.12.03 | 256 |
12 | PhoneGap, Accelerator Titanium, Appspresso | 황제낙엽 | 2013.11.29 | 186 |
11 |
[jQuery Mobile] 테마 (Theme)
![]() | 황제낙엽 | 2012.11.15 | 74 |
10 | [jQuery Mobile] 설정 | 황제낙엽 | 2012.11.15 | 84 |
9 | [jQuery Mobile] List view | 황제낙엽 | 2012.11.15 | 281 |
8 | [jQuery Mobile] Form element | 황제낙엽 | 2012.11.15 | 82 |
7 | [jQuery Mobile] Content formatting | 황제낙엽 | 2012.11.15 | 109 |
» | [jQuery Mobile] Button | 황제낙엽 | 2012.11.15 | 77 |
5 | [jQuery Mobile] Toolbar | 황제낙엽 | 2012.11.15 | 75 |
4 | [jQuery Mobile] page & dialog | 황제낙엽 | 2012.11.15 | 81 |
3 | [jQuery Mobile] 컴포넌트란? | 황제낙엽 | 2012.11.15 | 79 |
2 |
[jQuery mobile] 기본 사용법
![]() | 황제낙엽 | 2012.11.15 | 115 |
1 | [jQuery mobile] 소개 | 황제낙엽 | 2012.11.15 | 131 |