angular / angular/components

Allow Drag and Drop from/to arbitrary areas

Abierto
#13,987 2 comentarios 22 reacciones 0 asignados Ver en GitHub
area: cdk/drag-drop feature P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### Bug, feature request, or proposal:
Dragging and dropping in a cdkDropList is nice, but we need the ability to set an element as a cdkDrag element, and be able to drag that element onto an arbitrary drop zone/target. Currently, there is no way to know if a cdkDrag that is not part of a drop list is dragged - there aren't any "drag start", "drag end/dropped" events.

#### What is the expected behavior?
Be able to be notified when a cdkDrag element that is not within a drop list is dragged and dropped.

#### What is the current behavior?
Not the above.

#### What is the use-case or motivation for changing an existing behavior?
Be able to drag elements from a list / grid onto a target area, not necessarily moving the item, but to at least be notified when it is dropped into the target, in order to do something (play a sound or animation, etc.)

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.0.2
Material 7.0.2
All browsers.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza revisando las API de Angular CDK para arrastrar y soltar y el comportamiento descrito para los elementos cdkDrag independientes. El trabajo estará terminado cuando un cdkDrag fuera de una lista de soltar pueda notificar a los consumidores cuando comience el arrastre y cuando se suelte sobre un destino arbitrario.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.