Support providing multiple drag placeholders
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### 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?
コントリビューションガイド
調査の方向性
まず、リンクされた StackBlitz の例で動作を再現し、ドラッグプレースホルダー ディレクティブと移動先コンテナの動作を確認します。ドラッグされたアイテムが、移動先のコンテナに適したプレースホルダー レイアウトを、既存のドラッグプレビューに依存せずに使用できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100