I’ve started working with jQuery UI.
I want to know more about the jQuery UI mouse widget. I’m trying to find out the documentation of it, but it is not available. Any one knows about where the resource is available?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Mouse widget is an internal plugin that seems to be mostly (or only) used for low-level drag-and-drop handling.
I just wrote a blog post about using it to roll your own drag-and-drop (instead of using Draggable): http://www.solitr.com/blog/2012/05/roll-your-own-drag-and-drop-handling-with-jquery-ui/
The gist of it is, you can subclass it, like so:
Then instantiate the
custommouseplugin you just defined, and pass your ownevent handlers as options: