From 97807c1ef1b9889fe6ec17f0b42db2d488762a3b Mon Sep 17 00:00:00 2001
From: TJ VanToll All widgets have a The widget's instance is stored using jQuery core's data method 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. Whether an element has a given widget bound to it can be determined using the The widget's instance is stored using jQuery core's data method 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 is stored using jQuery core's data method 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 is stored using jQuery core's data method 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 is stored using You can also use Whether an element has a given widget bound to it can be determined using the Whether an element has a given widget bound to it can be determined using the create
event which is triggered upon instantiation.Instance
+
+
+
+
+ $( "#elem" ).data( "ui-progressbar" );
+
:data
selector.
+ $( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true
+ $( "#elem" ).is( ":data( 'ui-draggable' )" ); //false
+
Instance
-
-
$( "#elem" ).data( "ui-progressbar" );
From a8d50df106f117b722853a8f6ced099e56f67041 Mon Sep 17 00:00:00 2001
From: TJ VanToll
Instance
- 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.
+
+
$( "#elem" ).data( "ui-progressbar" );
@@ -99,6 +99,12 @@
$( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true
$( "#elem" ).is( ":data( 'ui-draggable' )" ); //false
:data
to get a list of all elements that are instances of a given widget.
+ $( ":data( 'ui-progressbar' )" );
+
:data
selector.:data
selector.
$( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true