Can we drag and drop md-list item or md-cards in angular material design

*爱你&永不变心* 提交于 2019-12-07 18:58:11

问题


Can we drag and drop md-list item or md-cards in angular material design using jQuery or other framework?


回答1:


I can give a partial answer to this. It is not recommended to add jQuery to an Angular project. Angular is controller-centric while jQuery is focused on manipulating the DOM. They are really different approaches, and while you could possibly get something to work using jQuery and Angular together--it would tend to be a fragile and overly complex solution.

The same holds for Angular Material. It's not a great basis for jQuery operations.

That having been said, see also my comment on your question. I read through all the documentation on http://material.angularjs.org and found nothing that suggests built-in support for drag/drop operations in general nor for dragging cards around in a list.

I realize the framework is still pretty new but I am surprised to find that something as essential to the Material Design concept as dragging cards around a list simply wasn't addressed. So perhaps you and I both are confused or missing something that should be glaringly obvious.



来源:https://stackoverflow.com/questions/35498109/can-we-drag-and-drop-md-list-item-or-md-cards-in-angular-material-design

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