javascript-tutorial / javascript-tutorial/en.javascript.info
Include example HTML5 Drag and Drop API
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- HTML
- Estrellas
- 25.5k
- Forks
- 4k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
There is a chapter called [“Drag'n'Drop with mouse events”](https://javascript.info/mouse-drag-and-drop), and it makes a passing reference to the Drag and Drop API. There are plenty of cases where it’s appropriate to choose this approach.
However, I think there also needs to be a “Drag'n'Drop with the API” chapter.
I’ve been using the DND API on a learning project. Although I got over the strange hurdle of learning which events apply to draggable items and which events apply to drop zones, I’m at a point where I am really missing the awesome guidance I can find on most other topics in your excellent work.
For the purpose of inspiration in creating such a chapter (or for anyone else reading this), one tutorial I found helpful helpful is this video (which includes the basics of the DND API, and implements a list-sorting feature):
https://www.youtube.com/watch?v=jfYWwQrtzzY
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Lee el capítulo existente «Drag'n'Drop with mouse events» en https://javascript.info/mouse-drag-and-drop y revisa el vídeo tutorial referenciado para comprobar la cobertura de la HTML5 Drag and Drop API. La tarea estará terminada cuando se añada un capítulo nuevo que explique la API, incluidos los eventos de draggable-item y drop-zone, y ofrezca orientación práctica sobre cuándo usarla.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- html, javascript
- Área
- documentation, web-dev
- Tipo de issue
- Documentación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100