Home > Uncategorized > Hiding “Back” button in jquery mobile framework

Hiding “Back” button in jquery mobile framework

This post is for users who have already used previous versions of jquery mobile framework during their development and are stuck with the default “Back” button when data-role=”header” is used.

In case of jquery mobile Alpha 3, here is the syntax:

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

 

Below syntax is for Alpha2:

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

 

Once the back button is removed, there’s a way to add it back in their respective pages.

<a href=”#” class=”ui-btn-left ui-btn-back” data-icon=”arrow-r”>Back</a>

where arrow-r helps in including an icon with right arrow.

Advertisement
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.