开发者

How to customize (or disable) the automatic "back" button in JQueryMobile

Is is possible to customize (or simply disable) th开发者_如何学Goe automatic "back" button in JQueryMobile ?


I think you're looking for this:

http://jquerymobile.com/demos/1.0a3/#docs/toolbars/docs-headers.html

To disable it just include data-backbtn="false" in the header div of your page.


To disable:

<div data-role="header" data-backbtn="false">

or

<div data-role="header" data-nobackbtn="true">

As far as customising goes, you can then create your own back button like this, which mimics the behavour of the original but lets you have more control over it:

<a href="#" data-rel="back" data-icon="arrow-l" data-theme="c" data-role="button">Back</a>

The automatic toolbar back button is now off by default in jQuery mobile Beta 1.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜