简体   繁体   English

我可以在带有phonegap的移动设备上使用html5的拖放吗?

[英]Can I use drag and drop of html5 on mobile devices with phonegap?

I need a drag and drop to mobile devices using phonegap. 我需要使用phonegap拖放到移动设备。 I tried with jquery mobile and jquery ui + jquery touch punch but html5 is better for me. 我尝试使用jquery mobile和jquery ui + jquery touch punch,但html5对我来说更好。 Is it possible? 可能吗?

Thanks, Francisco 谢谢,弗朗西斯科

//EDIT //编辑

Here is a draggable image : 这是一个可拖动的图像:

<a href="" name="cebra" draggable="true" ondragstart="dragUser(this, event)" > 
<img src="Imagenes/cebra.png" alt="cebra" width="150" height="100" id=""      style="background-color: #FFFFFF; display: block;" ; /> 
</a> 

and the function of javascript 和javascript的功能

function dragUser(user, event) { 
     event.dataTransfer.setData('User', user.id); 
 } 

I need to know if I can make a draggable image to android with the property draggable = "True" and phonegap. 我需要知道我是否可以使用属性draggable =“True”和phonegap为android创建一个可拖动的图像。 I can make this with jquery ui + jquery ui touch punch but could be better with html5 for my application. 我可以使用jquery ui + jquery ui touch punch来制作这个,但对于我的应用程序可能会更好用html5。

Hi Fransisco, Drag and drop feature can be added by using jQuery UI, and we have implemented this in web, android and iOS applications(Using phonegap also). 嗨Fransisco,拖放功能可以通过使用jQuery UI添加,我们已经在web,android和iOS应用程序中实现了这一点(也使用phonegap)。 So go ahead with this and please refer the following links, 所以继续这个,请参考以下链接,

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

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