angular / angular/components

Allow Drag and Drop from/to arbitrary areas

Đang mở
#13,987 2 bình luận 22 reaction 0 người được giao Xem trên GitHub
area: cdk/drag-drop feature P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

#### 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng việc xem xét các API kéo-thả của Angular CDK và hành vi được mô tả cho các phần tử cdkDrag độc lập. Công việc hoàn tất khi một cdkDrag nằm ngoài danh sách thả có thể thông báo cho các consumer khi thao tác kéo bắt đầu và khi nó được thả vào một đích tùy ý.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.