简体   繁体   English

Angular Material拖放CDK - 将单个元素(独立)放入列表

[英]Angular Material drag drop CDK - drop single element(independent) into a list

Is it possible to move an independent cdkDrag into a cdkDragList container?是否可以将独立的 cdkDrag 移动到 cdkDragList 容器中?

extra question: Is it possible to free move cdkDrag(s) inside a cdkDragList container?额外的问题:是否可以在 cdkDragList 容器内自由移动 cdkDrag(s)?

basically what I'm trying to do is to have one list(group) that the items inside can be freely moved, but when entering the second list the items will be ordered.基本上我想要做的是有一个列表(组),里面的项目可以自由移动,但是当进入第二个列表时,项目将被排序。

You could do this with a list of one item.您可以使用包含一项的列表来执行此操作。

You want Transferring Items Between Lists .您想要在列表之间传输项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM