angular / angular/components

feat(cdkDrag): cdkDragHandleBoundary

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

Descripción

### Feature Description

I want to limit where my dragable component can be dragged to but by its handle element rather than by its entire dragable element.

### Use Case

A bottom sliding drawer. If I can mark the entire drawer with `cdkDrag`, place `cdkDragHandle` on the drawer's handle, limit motion to the y axis, and then have a new `cdkHandleBoundary` directive then my boundary element can use overflow clipping so that when the handle is dragged to the bottom of the boundary the entire drawer content is hidden and when the handle is dragged upward then the drawer content is shown.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza leyendo los puntos de entrada cdkDrag y cdkDragHandle y siguiendo cómo se definen sus límites de movimiento. Determina cómo una nueva directiva cdkHandleBoundary restringiría el arrastre a través del handle, conservando al mismo tiempo el movimiento en el eje y y el recorte del desbordamiento para el caso de uso del drawer. Se considera terminado cuando el comportamiento de límite basado en el handle solicitado esté implementado y verificado para el escenario de sliding drawer descrito.

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.