From 0121fd01d1645f003bbb1c24566daccdefc3f6c0 Mon Sep 17 00:00:00 2001 From: Jasper de Groot Date: Thu, 6 Feb 2014 16:13:13 +0100 Subject: [PATCH] Toolbar: Corrections in back button info on demo page Fixes gh-6835 Closes gh-7075 --- demos/toolbar/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/toolbar/index.php b/demos/toolbar/index.php index f7d2fc52713..40a63db4ba0 100644 --- a/demos/toolbar/index.php +++ b/demos/toolbar/index.php @@ -120,7 +120,7 @@

Adding back button to header

-

jQuery Mobile has a feature to automatically create and append "back" buttons to any header, though it is disabled by default. This is primarily useful in chromeless installed applications, such as those running in a native app webview. The framework automatically generates a "back" button on a header when the page plugin's addBackBtn option is true. This can also be set via markup if the page div has a data-add-back-btn="true" attribute.

+

jQuery Mobile has a feature to automatically create and append "back" buttons to any header, though it is disabled by default. This is primarily useful in chromeless installed applications, such as those running in a native app webview. The framework automatically generates a "back" button on a header when the page plugin's addBackBtn option is true. This can also be set via markup if the header has a data-add-back-btn="true" attribute.

If you use the attribute data-rel="back" on an anchor, any clicks on that anchor will mimic the back button, going back one history entry and ignoring the anchor's default href. This is particularly useful when linking back to a named page, such as a link that says "home", or when generating "back" buttons with JavaScript, such as a button to close a dialog. When using this feature in your source markup, be sure to provide a meaningful href that actually points to the URL of the referring page. This will allow the feature to work for users in C-Grade browsers.

@@ -128,11 +128,11 @@

Customizing the back button text

-

If you'd like to configure the back button text, you can either use the data-back-btn-text="previous" attribute on your header element, or set it programmatically via the page plugin's options:
$.mobile.toolbar.prototype.options.backBtnText = "previous";

+

If you'd like to configure the back button text, you can either use the data-back-btn-text="previous" attribute on your header element, or set it programmatically via the toolbar plugin's options:
$.mobile.toolbar.prototype.options.backBtnText = "previous";

Default back button style

-

If you'd like to configure the back button role-theme, you can use:
+

If you'd like to configure the back button theme, you can use:
$.mobile.toolbar.prototype.options.backBtnTheme = "a";
If you're doing this programmatically, set this option inside the mobileinit event handler.