-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation of Mouse Interaction is very incomplete, somehow confusing, and lacks examples #209
Comments
Until the documentation is updated, I think the best reference would be to look at http://view.jqueryui.com/interactions/demos/interaction/default.html and http://view.jqueryui.com/interactions/demos/interaction/box.html which uses the new Interaction API, but should give you enough of an idea of how to use the current Mouse API. |
What should be clarified is what "extending $.ui.mouse" means. This is probably obvious to you but the page lacks a basic explanation of how to use the whole mouse thing.
Perhaps what I'm missing (and it may be my fault) is the inheritance mechanism in widgets.
Perhaps what's missing here is just something as simple as "See [link]" where [link] points to whatever part of the documentation where it explains how to write a widget that extends another. Because is that what it means? That mouse is a widget one should extend? |
http://api.jqueryui.com/jQuery.widget/#jQuery-widget1
You're actually not confused about how the mouse widget works, you're confused about how to inherit from another widget. |
http://api.jqueryui.com/mouse/
This part of the documentation needs serious improvement, and/or a corresponding dedicated section in Demos, which does not exist.
=> Explain how the widget author is supposed to implement this method. Because the obvious apparent meaning is that you are expected to implement it in this way:
but that's not the case, as this way the method won't ever be called.
The same applies to all the other methods of this part of the api (_mouseCapture, _mouseStop, _mouseDrag...)
There's an apparent contraddiction there.
That or no example at all is the same. A useful example would be an example implementation of the method, rather than an example of calling it which is something you wouldn't usually do.
The text was updated successfully, but these errors were encountered: