Documentation of Mouse Interaction is very incomplete, somehow confusing, and lacks examples
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, jquery
- Bereich
- documentation
Rechercherichtung
Beginne mit der API-Seite zur Mausinteraktion unter http://api.jqueryui.com/mouse/ und überprüfe die Einträge zu _mouseCapture, _mouseStart, _mouseDrag und _mouseStop sowie deren vorhandene Beispiele. Als abgeschlossen gilt die Aufgabe, wenn geklärt ist, wie Widget-Autoren diese Hooks implementieren, die Event-Argumente dokumentiert sind und Beispiele, die nur Aufrufe zeigen, durch nützliche Implementierungsbeispiele oder einen verlinkten Demo-Abschnitt ersetzt wurden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- (this applies to several methods but I take _mouseStart() as an example)
_mouseStart()Returns: jQuery (plugin only)
The extending widget should implement a _mouseStart() method to handle the beginning of an interaction
=> 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:
$.widget("my.widget.name", {
//....
//....
_mouseStart: function() {
//my definition of the method. e.g.:
alert("Mouse interaction starting");
return this;
}
});
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...)
- The following can be seen in the documentation of most of these methods:
This method will receive the mouse event associated with the start of the interaction.
- This method does not accept any arguments.
There's an apparent contraddiction there.
- Code examples. The current code examples are completely useless. Most (or all) examples are like this:
Code examples:
Invoke the _mouseStart method:$( ".selector" ).mouse( "_mouseStart" );
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.
- Vorherrschende Sprache
- HTML
- Sterne
- 73
- Forks
- 75
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus jquery/api.jqueryui.com
-
Printable documentationOffen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
jquery/api.jqueryui.com#361 · 1 Kommentar ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
jquery/api.jqueryui.com#341 ·
-
Clip effect - default direction invalidEvtl. vergeben @RaphaelFakhri hat das vor 7 Tagen übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 52/100
jquery/api.jqueryui.com#332 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
jquery/api.jqueryui.com#320 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 45/100
jquery/api.jqueryui.com#302 ·
Alle Issues in jquery/api.jqueryui.com
Ähnliche Issues
-
README says the land/sea mask must match the XS grid; the demo mask does not, and Step 4 worksOffendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
buckai-observatory/Automated-Cloud-Removal-and-Seamless-Satellite-Image-Mosaicking-Pipeline#52 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
run-llama/llama_index#24163 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
btclib-org/btclib#3090 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Translate the READMEOffendocumentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
asasemahmed/openboard#68 ·
Maintainer antworten meist innerhalb von 1 Tag