HTML5是否将工作拖放到Google Apps脚本HtmlService中? [英] Will HTML5 drag and drop work in a Google Apps Script HtmlService?

查看:132
本文介绍了HTML5是否将工作拖放到Google Apps脚本HtmlService中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTML服务为Google Apps脚本项目创建用户界面,并且我已经请求在此项目中添加拖放功能。我知道这些HTML服务存在一些限制(我已经浏览了这个文档,它看起来像是说不支持本地HTML5拖放操作: Google Apps脚本HTML服务限制)。即使新的HTML5 API没有官方支持,是否有一种方法可以让拖放工作?如果不是通过本机HTML5,通过外部JavaScript库?或者Caja会打破这个功能?

I'm messing around with creating a user interface for a Google Apps Script project using an HTML Service, and I've had a request to include drag and drop functionality in this project. I know that there are limitations on these HTML services (I have scoured this document, and it looks like it's saying that native HTML5 drag and drop isn't supported: Google Apps Script HTML Service Restrictions). Even though the new HTML5 API's aren't officially supported, is there a way I can get drag and drop to work? If not through native HTML5, through an external javascript Library? Or will Caja break the functionality?

我的第一次尝试没有奏效,所以我想我会跳到这里,看看是否有人获得成功,通过Google Apps脚本中的某种方法下载工作。

My first few attempts haven't worked, so I figured I'd jump on here and see if anyone has any success getting drag and drop to work though some method or another in Google Apps Script.

谢谢!

Thanks!

推荐答案

在气体中工作正常。你有什么尝试? Draggable等工作很好,使用jQuery与htmlServices没有任何特殊的代码。

Does work correctly in gas. What have you tried? Draggable etc work just fine using jquery with htmlServices without any special code.

这篇关于HTML5是否将工作拖放到Google Apps脚本HtmlService中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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