我们可以在角材料设计中拖放md-list项目或md卡吗 [英] Can we drag and drop md-list item or md-cards in angular material design

查看:75
本文介绍了我们可以在角材料设计中拖放md-list项目或md卡吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用jQuery或其他框架在角材料设计中拖放md-list项目或md-card吗?

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

推荐答案

我可以对此提供部分答案.不建议将jQuery添加到Angular项目中. Angular以控制器为中心,而jQuery则专注于操作DOM.它们实际上是不同的方法,虽然您可能可以同时使用jQuery和Angular进行某些工作-但它往往是一种脆弱且过于复杂的解决方案.

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.

角度材质"也是如此.这不是jQuery操作的良好基础.

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

话虽如此,另请参阅我对您问题的评论.我通读了 http://material.angularjs.org 上的所有文档,但没有发现建议内置支持的内容通常用于拖放操作,也不能用于拖动列表中的卡片.

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.

这篇关于我们可以在角材料设计中拖放md-list项目或md卡吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆