diff --git a/docs/api/index.html b/docs/api/index.html index 7a747085..a82f55eb 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -20,9 +20,9 @@
After jQuery Mobile auto-enhances form controls into custom controls, you can manipulate many of their properties via plugin methods. The currently available methods are listed below. Check Github for updates - we're working on complete coverage.
+ +open open a closed select menu
+$('select').selectmenu('open');
+
+ close close an open select menu
+$('select').selectmenu('close');
+
+ refresh: Update the custom menu to reflect the native select element's value. If the number of options in the select are different than the number of items in the custom menu, it'll rebuild the custom menu. Also, if you pass a true argument you can force the rebuild to happen.
+//refresh value
+$('select').selectmenu('refresh');
+
+//refresh and force rebuild
+$('select').selectmenu('refresh', true);
+
+ enable: enable a disabled select.
+$('select').selectmenu('enable');
+
+ disable: disable a select.
+$('select').selectmenu('disable');
+
+ enable: enable a disabled textinput/textarea.
+$('input').textinput('enable');
+
+ disable: disable a textinput/textarea.
+$('textarea').textinput('disable');
+
+ enable: enable a disabled checkboxradio.
+$('input').checkboxradio('enable');
+
+ disable: disable a checkboxradio.
+$('textarea').checkboxradio('disable');
+
+ refresh: refresh a checkboxradio's value.
+$('textarea').checkboxradio('refresh');
+
+ If lists are embedded in a page with other types of content, an inset list packages the list into a block that sits inside the content area with a bit of margin and rounded corners (theme controlled). By adding the data-inset="true" attribute to the list (ul or ol), applies the inset appearance.
If you add items to a listview, you'll need to call the refresh() method on it to update the styles and create any nested lists that are added. For example, $('ul').listview('refresh');
We're currently working on a few improvements to the refresh method, so keep your eye on Github for updates.
+If you'd like to configure the back button text, you can either use the data-back-btn-text="previous" attribute on your page element, or set it programmatically via the page plugin's options: $.mobile.page.prototype.options.backBtnText = "previous";. If you're doing this programmatically, set this option inside the mobileinit event handler.
If you need to to create a header that doesn't follow the default configuration, simply wrap your custom styled markup in a container div inside the header container and the plugin won't apply the automatic button logic so you can write custom styles for laying out the content in your header.