JQuery UI event and ui object properties

In the jQuery UI framework for Interactions, you can perform custom functions, and they take two parameters β€œevent” and β€œui”. I know that this should be obvious somewhere, but I can’t find out which methods and properties are available by these two parameters.

Does anyone know what methods and properties are available by these parameters or where can I find them?

+43
jquery jquery-ui documentation
Sep 11 '10 at 16:35
source share
2 answers

The documentation is always a good place to start, for example, the material you find in the ui object for draggable is available here: http://jqueryui.com/demos/draggable/ . An event object is always a source event, and a ui object contains information added by jQuery UI.

If you want, you can also do your own digging. Using console.log in Firefox with Firebug and Firequery add-ons, you can look at the insides of both objects. For example, using this code:

 $('#test').draggable({ start: function(event, ui){ console.log(event); console.log(ui); } }); 

The ui object looks like this:

alt text

+49
Sep 11 '10 at 16:52
source share

this is the link for the event object http://api.jquery.com/category/events/event-object/

for a UI object, it depends on the user interface you are using. http://docs.jquery.com/UI/

+14
Sep 11 '10 at 16:44
source share



All Articles