티스토리 뷰
This part is a complement of JQuery Mobile Code Snippets 1 , hope these codes help you.
Override Checkbox and Radio alignment:
Override CSS file:
.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
You can change text-align here. The default is left.
Navigation bar:
<div role="navigation" class="ui-navbar ui-navbar-noicons" data-role="navbar">
<ul class="ui-grid-b">
<li><a data-theme="a" href="#">Ads 1</a></li>
<li><a data-theme="a" href="#">Ads 2</a></li>
<li><a data-theme="a" href="#">Ads 3</a></li>
</ul>
</div>
Hide /Show button:
Put the button inside divider:
<div id='divNextbtn'>
<input type="button" id="btnId" value="More 50 Jokes" />
</div>
And then hide the divider:
$('div#divNextbtn').attr('style', 'display:none');
Disable / Enable button
Put the button inside divider: <div id="divbtnNext">
<input type="button" id="btnId" value="My button" />
</div>
To disable: $('div#divbtnNext input[type=button]').button('disable');
To Enable:$('div#divbtnNext input[type=button]').button('enable');
Close dialogs programmatically:
$('.ui-dialog').dialog('close');
Change Background color:
Depend on the theme, for example when you are using theme "b":
.ui-body-b{background: white;
} Or
.ui-page { background:white}
Chagne Background Image :
.ui-body-b {
background-image: url(Style/cust-images/sign-up-tw.png);
}
Add Back button to the page:
Assign data-rel = back to the anchor :
<a data-role="button" data-rel="back" href="#">Back</a>
Ignore Load Message from the page:
<script>
$(document).bind("mobileinit", function () {
$.mobile.changePage.defaults.showLoadMsg = false;
});</script>
출처 :
http://weblogs.asp.net/yousefjadallah/archive/2011/08/09/jquery-mobile-code-snippets-2.aspx
'프로그래밍 > Jquery Mobile' 카테고리의 다른 글
| Jquery Mobile API & Document (0) | 2012.04.18 |
|---|---|
| JQuery Mobile Code Snippets 1 (0) | 2012.04.09 |
| Jquery Mobile Grid layout (제이쿼리 모바일 그리드 레이아웃) (0) | 2012.04.09 |
| jquerymobile 에서 페이지 로딩시 자바스크립트 실행 하기 (0) | 2012.04.04 |
| Jquery Mobile 페이지 이동방식, swipeleft, swiperight (0) | 2012.03.30 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Excel
- 제이쿼리
- WCF
- 자바스크립트
- MSSQL
- Ajax
- JS
- json
- html5
- WebApi
- 저장프로시저
- 셀렉터
- workbook
- Chart
- radius
- jQuery Mobile
- Style
- JavaScript
- jQuery
- SVG
- css3
- Mobile
- CSS
- 프로시저
- jquery chart
- ASP.NET
- rowspan
- IE
- drag&drop
- grid
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
글 보관함