{"id":4,"date":"2023-08-25T17:34:36","date_gmt":"2023-08-25T17:34:36","guid":{"rendered":"\/\/api.jquerymobile.com\/1.4\/?page_id=4"},"modified":"2023-08-25T17:34:36","modified_gmt":"2023-08-25T17:34:36","slug":"data-attribute","status":"publish","type":"page","link":"https:\/\/api.jquerymobile.com\/1.4\/data-attribute\/","title":{"rendered":"Data Attributes"},"content":{"rendered":"<h2>Data attribute reference<\/h2>\n<p>The jQuery Mobile framework uses HTML5 <code>data-<\/code> attributes to allow for markup-based initialization and configuration of widgets. These attributes are completely optional; calling plugins manually and passing options directly is also supported. To avoid naming conflicts with other plugins or frameworks that also use <code>data-<\/code> attributes, set a custom namespace by modifying the <a href=\"global-config\"><code>ns<\/code> global option<\/a>.<\/p>\n\n<h2><a href=\"..\/button\/\">Button<\/a><\/h2>\n<p>Links with <code>data-role=&quot;button&quot;<\/code>. Input-based buttons, links in toolbars and button elements are auto-enhanced, no <code>data-role<\/code> required.<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-corners<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-iconpos<\/th>\n\t\t<td><strong>left<\/strong> | right | top | bottom | notext<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-iconshadow<\/th>\n\t\t<td>true | <strong>false<\/strong> <span class=\"warning\">Deprecated as of 1.4.0 and will be removed in 1.5.0.<\/span><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-inline<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-shadow<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n<\/table>\n\n<h2><a href=\"..\/checkboxradio\/\">Checkbox<\/a><\/h2>\n<p>Pairs of labels and inputs with <code>type=&quot;checkbox&quot;<\/code> are auto-enhanced, no <code>data-role<\/code> required<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>none - Prevents auto-enhancement to use native control<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n<\/table>\n\n<h2><a href=\"..\/collapsible\/\">Collapsible<\/a><\/h2>\n<p>A heading and content wrapped in a container with the <code>data-role=&quot;collapsible&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-collapsed<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-collapse-cue-text<\/th>\n\t\t<td>string - Text used to provide audible feedback for users with screen reader software. Default: &quot; click to collapse contents&quot;<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-collapsed-icon<\/th>\n\t\t<td>home | delete | <strong>plus<\/strong> | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-content-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-expand-cue-text<\/th>\n\t\t<td>string - Text used to provide audible feedback for users with screen reader software. Default: &quot; click to expand contents&quot;<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-expanded-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b| check | gear | grid | star | custom | arrow-r | arrow-l | <strong>minus<\/strong> | refresh | forward | back | alert | info | search<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-iconpos<\/th>\n\t\t<td><strong>left<\/strong> | right | top | bottom<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-inset<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/collapsibleset\/\">Collapsible set<\/a><\/h2>\n<p>A number of collapsibles wrapped in a container with the <code>data-role=&quot;collapsibleset&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-collapsed-icon<\/th>\n\t\t<td>home | delete | <strong>plus<\/strong> | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b| check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-content-theme<\/th>\n\t\t<td>swatch letter (a-z) - Sets all collapsibles in set<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-expanded-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b| check | gear | grid | star | custom | arrow-r | arrow-l | <strong>minus<\/strong> | refresh | forward | back | alert | info | search<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-iconpos<\/th>\n\t\t<td><strong>left<\/strong> | right | top | bottom |  notext<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-inset<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Sets all collapsibles in set<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2>Content<\/h2>\n<p class=\"warning\"><strong>Note:<\/strong> Deprecated as of 1.4.0 and will be removed in 1.5.0.<\/p>\n<p>Container with <code>data-role=&quot;content&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/controlgroup\/\">Controlgroup<\/a><\/h2>\n<p>DIV or FIELDSET container with <code>data-role=&quot;controlgroup&quot;<\/code>. Visually integrate multiple button-styled elements.<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-exclude-invisible<\/th>\n\t\t<td><strong>true<\/strong> | false - Sets whether to exclude invisible children in the assignment of rounded corners<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version for all items in the controlgroup<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-type<\/th>\n\t\t<td>horizontal | <strong>vertical<\/strong> - For horizontal or vertical item alignment<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/dialog\/\">Dialog<\/a><\/h2>\n<p>Container with <code>data-role=&quot;dialog&quot;<\/code> or linked to with <code>data-rel=&quot;dialog&quot;<\/code> on the anchor.<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-close-btn<\/th>\n\t\t<td><strong>left<\/strong> | right | none<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-close-btn-text<\/th>\n\t\t<td>string - Text for the close button, dialog only. Default: <strong>&quot;close&quot;<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-corners<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-dom-cache<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-overlay-theme<\/th>\n\t\t<td>swatch letter (a-z) - Overlay theme when the page is opened in a dialog<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-title<\/th>\n\t\t<td>string - Title used when page is shown<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"global-config\">Enhancement<\/a><\/h2>\n<p>Container with <code>data-enhance=&quot;false&quot;<\/code> or <code>data-ajax=&quot;false&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-enhance<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-ajax<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n<\/table>\n<p>Any DOM elements inside a <code>data-enhance=&quot;false&quot;<\/code> container, save for <code>data-role=&quot;page|dialog&quot;<\/code> elements, will be ignored during initial enhancement and subsequent <code>create<\/code> events provided that the <code>$.mobile.ignoreContentEnabled<\/code> flag is set prior to the enhancement (eg in a <code>mobileinit<\/code> binding).<\/p>\n\n<p>Any link or form element inside <code>data-ajax=&quot;false&quot;<\/code> containers will be ignored by the framework&apos;s navigation functionality when <code>$.mobile.ignoreContentEnabled<\/code> is set to true.<\/p>\n\n<h2>Field container<\/h2>\n<p>Container with <code>data-role=&quot;fieldcontain&quot;<\/code> wrapped around label\/form element pair<\/p>\n<p class=\"warning\"><strong>Note:<\/strong> <code>data-role=&quot;fieldcontain&quot;<\/code> is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Add class <code>ui-field-contain<\/code> instead.<\/p>\n\n<h2><a href=\"..\/flipswitch\/\">Flip toggle switch<\/a><\/h2>\n<p>Select with <code>data-role=&quot;slider&quot;<\/code> and two <code style=\"font-weight:normal;\">option<\/code> element<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>none - Prevents auto-enhancement to use native control<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-track-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2>Link<\/h2>\n<p>Links, including those with a <code>data-role=&quot;button&quot;<\/code>, and form submit buttons share these attributes<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-ajax<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-direction<\/th>\n\t\t<td>reverse - Reverse transition animation (only for page or dialog)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-dom-cache<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-prefetch<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-rel<\/th>\n\t\t<td>back - To move one step back in history<br>\n\t\t\tdialog - To open link styled as dialog, not tracked in history<br>\n\t\t\texternal - For linking to another domain<br>\n\t\t\tpopup - For opening a popup<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-transition<\/th>\n\t\t<td><strong>fade<\/strong> | flip | flow | pop | slide | slidedown | slidefade | slideup | turn | none<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-position-to<\/th>\n\t\t<td><strong>origin<\/strong> - Centers the popup over the link that opens it<br>\n\t\t\tjQuery selector - Centers the popup over the specified element<br>\n\t\t\twindow - Centers the popup in the window<br>\n\t\t\t<u>Note:<\/u> option only available when used with popups. See also: <a href=\"..\/popup\/\"> options<\/a>.<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/listview\/\">Listview<\/a><\/h2>\n<p><code style=\"font-weight:normal;\">OL<\/code> or <code style=\"font-weight:normal;\">UL<\/code> with <code>data-role=&quot;listview&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-autodividers<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-count-theme<\/th>\n\t\t<td>swatch letter (a-z) - Default &quot;null&quot;, inherited from parent <span class=\"warning\">Deprecated as of 1.4.0 and will be removed in 1.5.0.<\/span><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-divider-theme<\/th>\n\t\t<td>swatch letter (a-z) - Default &quot;null&quot;, inherited from parent<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-filter<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-filter-placeholder<\/th>\n\t\t<td>string<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-filter-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-header-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b| check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-inset<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-split-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b| check | gear | grid | star | custom | <strong>arrow-r<\/strong> | arrow-l | minus | refresh | forward | back | alert | info | search<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-split-theme<\/th>\n\t\t<td>swatch letter (a-z) - Default &quot;null&quot;, inherited from parent<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/listview\/\">Listview item<\/a><\/h2>\n<p><code style=\"font-weight:normal;\">LI<\/code> within a listview<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-filtertext<\/th>\n\t\t<td>string - Filter by this value instead of inner text<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | arrow-d | carat-l | carat-t | carat-r | carat-b| check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>list-divider<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n<\/table>\n<p>The <code>data-icon<\/code> attribute is only applicable for a listview item if it contains a link.<\/p>\n\n<h2><a href=\"..\/navbar\/\">Navbar<\/a><\/h2>\n<p>A number of <code style=\"font-weight:normal;\">LI<\/code>s wrapped in a container with <code>data-role=&quot;navbar&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-iconpos<\/th>\n\t\t<td>left | right | <strong>top<\/strong> | bottom |  notext<\/td>\n\t<\/tr>\n<\/table>\n<p>To add icons to the navbar items, the <code>data-icon<\/code> attribute is used, specifying a standard mobile icon for each item.<\/p>\n<p>Navbars inherit the theme-swatch from their parent container. Setting the <code>data-theme<\/code> attribute to a navbar is not supported. The <code>data-theme<\/code> attribute can be set individually to the links inside a navbar.<\/p>\n\n<h2><a href=\"..\/page\/\">Page<\/a><\/h2>\n<p>Container with <code>data-role=&quot;page&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-dom-cache<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-overlay-theme<\/th>\n\t\t<td>swatch letter (a-z) - Overlay theme when the page is opened as a dialog<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Default &quot;a&quot;<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-title<\/th>\n\t\t<td>string - Title used when page is shown<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th id=\"page-data-url\">data-url<\/th>\n\t\t<td>url - Value for updating the URL, instead of the url used to request the page. The value of this attribute should not be URI-encoded. If your path or filename contains apostrophes or quotation marks, use entity encoding in the value, rather than URL encoding. For example, <code style=\"white-space: nowrap;\">data-url=&quot;\/path\/to\/<b>&amp;quot;<\/b>Devil<b>&amp;apos;<\/b>s Advocate<b>&amp;quot;<\/b>.html&quot;<\/code><\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/popup\/\">Popup<\/a><\/h2>\n<p>Container with <code>data-role=&quot;popup&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-corners<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-dismissible<\/th>\n\t\t<td><strong>true<\/strong> | false - If set to false prevents popup closing by clicking outside of the popup or pressing the Escape key<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-history<\/th>\n\t\t<td><strong>true<\/strong> | false - Sets whether the popup creates a browser history item when it opens. If set to false, it will not create a history item, and will thus not be closeable via the browser&apos;s &quot;Back&quot; button.<\/td>\n\t<\/tr>\n\n\t<tr>\n\t\t<th>data-overlay-theme<\/th>\n\t\t<td>swatch letter (a-z) - Default &quot;null&quot; (transparent background)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-position-to<\/th>\n\t\t<td><strong>origin<\/strong> | window | selector - &quot;origin&quot; indicates that the popup is to be centered over the link that opens it. &quot;window&quot; indicates that it is to be centered in the browser window. If you give a jQuery selector, it will be centered over the first element returned by the selector, if that element is visible. Otherwise, it will be centered in the browser window.<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-shadow<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) | none - Default inherited, &quot;none&quot; sets the popup to transparent<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-tolerance<\/th>\n\t\t<td><strong>30,15,30,15<\/strong> - Distance from the edges of the window (top, right, bottom, left)<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-transition<\/th>\n\t\t<td><strong>none<\/strong> | transition - The transition to use when making the popup appear\/disappear.<\/td>\n\t<\/tr>\n<\/table>\n<p>Anchor with a <code>data-rel=&quot;popup&quot;<\/code> opens the popup<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-position-to<\/th>\n\t\t<td><strong>origin<\/strong> - Centers the popup over the link that opens it<br>\n\t\t\tjQuery selector - Centers the popup over the specified element<br>\n\t\t\twindow - Centers the popup in the window<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-rel<\/th>\n\t\t<td>popup - For opening a popup<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-transition<\/th>\n\t\t<td>fade | flip | flow | pop | slide | slidedown | slidefade | slideup | turn | <strong>none<\/strong> - The transition to be used when showing\/hiding the popup<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/checkboxradio\/\">Radio button<\/a><\/h2>\n<p>Pairs of labels and inputs with <code>type=&quot;radio&quot;<\/code> are auto-enhanced, no <code>data-role<\/code> required<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>none - Prevents auto-enhancement to use native control<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n<\/table>\n\n<h2><a href=\"..\/selectmenu\/\">Selectmenu<\/a><\/h2>\n<p>All <code>select<\/code> form elements are auto-enhanced, no <code>data-role<\/code> required<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-divider-theme<\/th>\n\t\t<td>swatch letter (a-z) - Default &quot;b&quot; - Only applicable if <code>optgroup<\/code> support is used in non-native selects<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-icon<\/th>\n\t\t<td>home | delete | plus | arrow-u | <strong>arrow-d<\/strong> | carat-l | carat-t | carat-r | carat-b | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | false <\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-iconpos<\/th>\n\t\t<td>left | <strong>right<\/strong> | top | bottom |  notext<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-inline<\/th>\n\t\t<td>true | <strong>false<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-native-menu<\/th>\n\t\t<td><strong>true<\/strong> | false<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-overlay-theme<\/th>\n\t\t<td>swatch letter (a-z) - Overlay theme for non-native selects<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-placeholder<\/th>\n\t\t<td>true | <strong>false<\/strong> - Can be set on <code style=\"font-weight:normal;\">option<\/code> element of a non-native select<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>none - Prevents auto-enhancement to use native control<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n<\/table>\n\n<h2><a href=\"..\/slider\/\">Slider<\/a><\/h2>\n<p>Inputs with <code>type=&quot;range&quot;<\/code> are auto-enhanced, no <code>data-role<\/code> required<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-highlight<\/th>\n\t\t<td>true | <strong>false<\/strong> - Adds an active state fill on track to handle<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>none - Prevents auto-enhancement to use native control<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-track-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/textinput\/\">Textinput<\/a><\/h2>\n<p>Input <code>type=&quot;text|number|search|etc.&quot;<\/code> or <code>textarea<\/code> elements are auto-enhanced, no <code>data-role<\/code> required<\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-clear-btn<\/th>\n\t\t<td>true | <strong>false<\/strong> - Adds a clear button<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-clear-btn-text<\/th>\n\t\t<td>string - Text for the close button. Default: <strong>&quot;clear text&quot;<\/strong><\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-mini<\/th>\n\t\t<td>true | <strong>false<\/strong> - Compact sized version<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-role<\/th>\n\t\t<td>none - Prevents auto-enhancement to use native control<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z) - Added to the form element<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/toolbar\/\">Toolbar<\/a><\/h2>\n<p>Container with <code>data-role=&quot;header&quot;<\/code> or <code>data-role=&quot;footer&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-add-back-btn<\/th>\n\t\t<td>true | <strong>false<\/strong> - Auto add back button, header only<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-back-btn-text<\/th>\n\t\t<td>string - Header only<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-back-btn-theme<\/th>\n\t\t<td>swatch letter (a-z) - Header only<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-id<\/th>\n\t\t<td>string - Unique ID. Required for persistent footers<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-position<\/th>\n\t\t<td>fixed<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-theme<\/th>\n\t\t<td>swatch letter (a-z)<\/td>\n\t<\/tr>\n<\/table>\n<p><\/p>\n\n<h2><a href=\"..\/toolbar\/\">Fixed toolbar<\/a><\/h2>\n<p>Container with <code>data-role=&quot;header&quot;<\/code> or <code>data-role=&quot;footer&quot;<\/code> plus the attribute <code>data-position=&quot;fixed&quot;<\/code><\/p>\n<table class=\"column-headers\">\n\t<tr>\n\t\t<th>data-disable-page-zoom<\/th>\n\t\t<td><strong>true<\/strong> | false - User-scaling-ability for pages with fixed toolbars<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-fullscreen<\/th>\n\t\t<td>true | <strong>false<\/strong> - Setting toolbars <u>over<\/u> the page-content<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-tap-toggle<\/th>\n\t\t<td><strong>true<\/strong> | false - Ability to toggle toolbar-visibility on user tap\/click<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-transition<\/th>\n\t\t<td><strong>slide<\/strong> | fade | none - Transition used when showing\/hiding the toolbar<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-update-page-padding<\/th>\n\t\t<td><strong>true<\/strong> | false - Have the page top and bottom padding updated on resize, transition, &quot;updatelayout&quot; events (the framework always updates the padding on the &quot;pageshow&quot; event).<\/td>\n\t<\/tr>\n\t<tr>\n\t\t<th>data-visible-on-page-show<\/th>\n\t\t<td><strong>true<\/strong> | false - Toolbar-visibility when parent page is shown<\/td>\n\t<\/tr>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>A list of the data-attributes used by jQuery Mobile.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4","page","type-page","status-publish","hentry","category-reference"],"_links":{"self":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/pages\/4","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":1,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/pages\/4\/revisions"}],"predecessor-version":[{"id":5,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/pages\/4\/revisions\/5"}],"wp:attachment":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}