jQuery mobile

Button

버튼의 종류

a(앵커)

페이지 이동에 사용된다.

<a href="index.html" data-role="button">Link button</a> 

<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

버튼의 그룹핑

<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>

<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 값을 부여해서 지정한다.

<a href="index.html" data-role="button" data-theme="a">Theme a</a>

아래는 각 테마별 버튼의 디자인

댓글

댓글 본문
  1. 허공
    감사합니다!
  2. JustStudy
    고맙습니다
  3. imkurtkim
    감사합니다.
  4. 코딩코코
    강의 너무 잘 듣고 있습니다 ~ 이렇게 좋은 강의 어디 가서 듣겠어요... 참 감사 합니다 ~
버전 관리
egoing
현재 버전
선택 버전
graphittie 자세히 보기