If set to true
, the dialog will be resizable. Requires the jQuery UI Resizable widget to be included.
@@ -312,6 +304,7 @@
Opens the dialog.
+
diff --git a/entries/draggable.xml b/entries/draggable.xml
index 8334338f..e07bc72a 100644
--- a/entries/draggable.xml
+++ b/entries/draggable.xml
@@ -205,6 +205,7 @@
+
diff --git a/entries/droppable.xml b/entries/droppable.xml
index 4c87be57..4e43fbd4 100644
--- a/entries/droppable.xml
+++ b/entries/droppable.xml
@@ -135,6 +135,7 @@
+
diff --git a/entries/jQuery.widget.xml b/entries/jQuery.widget.xml
index d9c10006..4d92d0cb 100644
--- a/entries/jQuery.widget.xml
+++ b/entries/jQuery.widget.xml
@@ -109,19 +109,32 @@
Instance
- The widget's instance is stored using jQuery.data()
with the widget's full name as the key. Therefore, you can use the following to retrieve the progressbar widget's instance object from the element.
+ The widget's instance can be retrieved from a given element using the instance()
method.
- $( "#elem" ).data( "ui-progressbar" );
+ $( "#elem" ).progressbar( "instance" );
- Whether an element has a given widget bound to it can be determined using the :data
selector.
+ If the instance()
method is called on an element that is not associated with the widget, undefined
is returned.
+
+
+ $( "#not-a-progressbar" ).progressbar( "instance" ); // undefined
+
+
+ The instance is stored using jQuery.data()
with the widget's full name as the key. Therefore, the :data
selector can also determine whether an element has a given widget bound to it.
$( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true
$( "#elem" ).is( ":data( 'ui-draggable' )" ); // false
+ Unlike instance()
, :data
can be used even if the widget being tested for has not loaded.
+
+
+ $( "#elem" ).nonExistentWidget( "instance" ); // TypeError
+ $( "#elem" ).is( ":data( 'ui-nonExistentWidget' )" ); // false
+
+
You can also use :data
to get a list of all elements that are instances of a given widget.
@@ -181,126 +194,12 @@
-
-
- Removes the functionality completely. This will return the element back to its pre-init state.
-
-
- Destroy the widget when any of its anchors are clicked.
-
-
-
-
-
- Disables the .
-
-
- Disable the widget when any of its anchors are clicked.
-
-
-
-
-
- Enables the .
-
-
- Enable the widget when any of its anchors are clicked.
-
-
-
-
-
- Sets one or more options for the .
-
-
- Gets the value currently associated with the specified optionName
.
-
- The name of the option to get.
-
-
- Retrieve the value of the width
option.
-
-
-
-
- Gets an object containing key/value pairs representing the current options hash.
-
- Log the key and value of each of the widget's options for debugging.
-
-
-
-
- Sets the value of the option associated with the specified optionName
.
-
- The name of the option to set.
-
-
- A value to set for the option.
-
-
- Set the width
option to 500
.
-
-
-
-
- Sets one or more options for the .
-
- A map of option-value pairs to set.
-
-
- Set the height
and width
options to 500
.
-
-
-
-
-
-
- Returns a jQuery
object containing the .
-
-
- Place a red border around the widget's original element when it's created.
-
-
-
+
+
+
+
+
+
The _create()
method is the widget's constructor.
diff --git a/entries/menu.xml b/entries/menu.xml
index 7ea6d299..9a5c2c6b 100644
--- a/entries/menu.xml
+++ b/entries/menu.xml
@@ -5,23 +5,23 @@
Themeable menu with mouse and keyboard interactions for navigation.
- A menu can be created from any valid markup as long as the elements have a strict parent/child relationship and each menu item has an anchor. The most commonly used element is the unordered list (<ul>
):
+ A menu can be created from any valid markup as long as the elements have a strict parent/child relationship. The most commonly used element is the unordered list (<ul>
):
@@ -35,7 +35,7 @@
Menu automatically adds the necessary padding to items without icons.
@@ -46,9 +46,9 @@
@@ -150,6 +150,7 @@
+
Opens the sub-menu below the currently active item, if one exists.
@@ -227,6 +228,36 @@
+
+
+
+ Method that determines whether clicks on the document should close any open menus. By default, menus are closed unless the click occurred on the menu.
+
+
+
+ Never close menus on document click.
+
+
+
+
+
+ Determines whether an item should acually be represented as a divider instead of a menu item. By default any item that contains just spaces and/or dashes is considered a divider.
+
+
+
+ Treat all items as menu items with no dividers.
+
+
+
+
@@ -281,19 +312,19 @@ $( "#menu" ).menu();
]]>
diff --git a/entries/progressbar.xml b/entries/progressbar.xml
index 6db160a3..39452160 100644
--- a/entries/progressbar.xml
+++ b/entries/progressbar.xml
@@ -70,6 +70,7 @@
+
Gets or sets the current value of the progressbar.
diff --git a/entries/resizable.xml b/entries/resizable.xml
index dc1ccafb..a7f1a9bf 100644
--- a/entries/resizable.xml
+++ b/entries/resizable.xml
@@ -192,6 +192,7 @@
+
diff --git a/entries/selectable.xml b/entries/selectable.xml
index f7cf8b97..11ba0967 100644
--- a/entries/selectable.xml
+++ b/entries/selectable.xml
@@ -97,6 +97,7 @@
+
Refresh the position and size of each selectee element. This method can be used to manually recalculate the position and size of each selectee when the autoRefresh
option is set to false
.
diff --git a/entries/selectmenu.xml b/entries/selectmenu.xml
new file mode 100644
index 00000000..f07acfb9
--- /dev/null
+++ b/entries/selectmenu.xml
@@ -0,0 +1,204 @@
+
+
+ Selectmenu Widget
+ Duplicates and extends the functionality of a native HTML select element to overcome the limitations of the native control.
+
+ Selectmenu transforms a <select>
element into a themeable and customizable control. The widget acts as a proxy to the original <select>
; therefore the original element's state is maintained for form submission and serialization.
+
+ Selectmenu supports <optgroup>
elements and custom markup to render specific presentations like multiple lines. The <select>
and its options can be disabled by adding a disabled
attribute.
+
+ Keyboard interaction
+
+ When the menu is open, the following key commands are available:
+
+ UP/LEFT: Move focus to the previous item.
+ DOWN/RIGHT: Move focus to the next item.
+ END/PAGE DOWN: Move focus to the last item.
+ HOME/PAGE UP: Move focus to the first item.
+ ESCAPE: Close the menu.
+ ENTER/SPACE: Select the currently focused item and close the menu.
+ ALT+UP/DOWN: Toggle the visibility of the menu.
+
+
+ When the menu is closed, the following key commands are available:
+
+ UP/LEFT: Select the previous item.
+ DOWN/RIGHT: Select the next item.
+ END/PAGE DOWN: Select the last item.
+ HOME/PAGE UP: Select the first item.
+ ALT+UP/DOWN: Toggle the visibility of the menu.
+ SPACE: Open the menu.
+
+
+
+ 1.11
+
+
+ Which element to append the menu to. When the value is null
, the parents of the <select>
are checked for a class name of ui-front
. If an element with the ui-front
class name is found, the menu is appended to that element. Regardless of the value, if no element is found, the menu is appended to the body.
+
+
+
+
+ Icons to use for the button, matching an icon defined by the jQuery UI CSS Framework .
+
+ button (string, default: "ui-icon-triangle-1-s")
+
+
+
+
+ Identifies the position of the menu in relation to the associated button element. You can refer to the jQuery UI Position utility for more details about the various options.
+
+
+ The width of the menu, in pixels. When the value is null
, the width of the native select is used.
+
+
+
+
+
+ Triggered when the selected item has changed. Not every select
event will fire a change
event.
+
+
+
+ The active item.
+
+
+
+
+ Triggered when the menu is hidden.
+
+
+
+
+
+ Triggered when an items gains focus.
+
+
+
+
+ The focused item.
+
+
+
+
+ Triggered when the menu is opened.
+
+
+
+
+ Triggered when a menu item is selected.
+
+
+
+
+ The selected item.
+
+
+
+
+
+
+ Closes the menu.
+
+
+
+
+
+
+ Returns a jQuery
object containing the menu element.
+
+
+ Opens the menu.
+
+
+
+
+ Parses the original element and re-renders the menu. Processes any <option>
or <optgroup>
elements that were added, removed or disabled.
+
+
+
+ Returns a jQuery
object containing the button element.
+
+
+
+ A simple jQuery UI Selectmenu
+
+
+
+
+
+ A simple jQuery UI Selectmenu with optgroups
+
+
+
+
+
+ A jQuery UI Selectmenu with overflow
+
+
+
+
+
+
diff --git a/entries/slider.xml b/entries/slider.xml
index 56bcc570..8c14039b 100644
--- a/entries/slider.xml
+++ b/entries/slider.xml
@@ -128,6 +128,7 @@
+
Get or set the value of the slider.
diff --git a/entries/sortable.xml b/entries/sortable.xml
index 7f83a282..12dae5f2 100644
--- a/entries/sortable.xml
+++ b/entries/sortable.xml
@@ -226,6 +226,7 @@
+
Refresh the sortable items. Triggers the reloading of all sortable items, causing new items to be recognized.
diff --git a/entries/spinner.xml b/entries/spinner.xml
index db7a8bf9..4a6cddb8 100644
--- a/entries/spinner.xml
+++ b/entries/spinner.xml
@@ -110,6 +110,7 @@
+
@@ -166,6 +167,11 @@
+
+
+ Returns whether the Spinner's value is valid given its min
, max
, and step
.
+
+
diff --git a/entries/tabs.xml b/entries/tabs.xml
index f0a521c9..092b5837 100644
--- a/entries/tabs.xml
+++ b/entries/tabs.xml
@@ -261,6 +261,7 @@
+
Process any tabs that were added or removed directly in the DOM and recompute the height of the tab panels. Results depend on the content and the heightStyle
option.
diff --git a/entries/tooltip.xml b/entries/tooltip.xml
index 11875314..0df72c93 100644
--- a/entries/tooltip.xml
+++ b/entries/tooltip.xml
@@ -97,6 +97,7 @@
Programmatically open a tooltip. This is only intended to be called for non-delegated tooltips.