Support providing multiple drag placeholders
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### Please describe the feature you would like to request.
Currently there is one type of place holder, the one that's defined with the `*cdkDragPlaceholder` directive.
However the destination container might display the `cdkDrag` item different than the original container.
You can see the issue in here:
https://stackblitz.com/edit/angular-terlwz
If you'll try to drag to the done list the place holder there doesn't show the right layout of the component if it would be dropped.
#### What is the use-case or motivation for this proposal?
I need to take item from one container with a certain layout, and drop the element in other container with different layout. since the layout is different and the way the drag item is viewed in the container is different I suppose the place holder also need to be different.
#### Is there anything else we should know?
I'm also using the drag preview for other feature so I can't use it here.
Maybe the container itself should accept a template for rendering an element that is about to be added.
What do you think?
Guía de contribución
Línea de trabajo
Empieza reproduciendo el comportamiento del ejemplo de StackBlitz enlazado y leyendo la directiva de placeholder de arrastre y el comportamiento del contenedor de destino. Se considerará terminado cuando un elemento arrastrado pueda usar un diseño de placeholder adecuado para el contenedor al que entra, sin depender de la vista previa de arrastre existente.
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