How to select the dropped data UI based on the value present in the dropped item

白昼怎懂夜的黑 提交于 2019-12-25 00:33:54

问题


Hi I am using angular 7 drag and drop feature. I am following this link

https://stackblitz.com/edit/angular-material-drag-copy?file=app%2Fapp.component.html

I want to check the data which is being dropped and based on the value i need to set whether it is a mat expansion panel or mat list. which is to be shown in the ui.

I am using ngrepeat for generating the list items in both the drag and dropped place.

Basically I want to decide the UI element which is to used based on the value that is being dropped. Say if it is environment then I should get a mat panel inside which i can drop list items. If it is memory which is an item inside a list then it should be a simple mat list which is to be added.

来源:https://stackoverflow.com/questions/57924066/how-to-select-the-dropped-data-ui-based-on-the-value-present-in-the-dropped-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!