angular / angular/components

Allow Drag and Drop from/to arbitrary areas

オープン
#13,987 コメント 2 件 リアクション 22 件 担当者 0 名 GitHub で見る
area: cdk/drag-drop feature P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Angular CDK のドラッグ&ドロップ API と、スタンドアロンの cdkDrag 要素について説明されている動作を確認します。ドロップリスト外の cdkDrag が、ドラッグの開始時と任意のターゲットへのドロップ時にコンシューマーへ通知できるようになれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。