将列表中的元素拖放到单独的块中 [英] Drag and drop elements from list into separate blocks
问题描述
我正在尝试获得一个类似于 这个网站.
I'm trying to get a jQuery component similar to the one on this site.
基本上,有一个包含可用元素的列表,您可以将其拖放到多个块中.
Basically, there is a list with available elements that you can drag and drop into several blocks.
我有相当多的 JavaScript 开发经验,但我对 jQuery 很陌生,我希望用这种语言编写脚本.
I have quite a bit of JavaScript development experience, but I'm quite new to jQuery, the language I want this to be scripted in.
您能否带我看一些类似于上面显示的示例,或者给我一些提示,告诉我从什么地方开始寻找类似的东西是一个好地方?
Can you please lead me to some example similar to the one showed above, or give me some hints on what would be a good place to start looking for something like this?
推荐答案
也许 jQuery UI 可以满足您的需求.它由许多方便的辅助函数组成,例如使对象可拖动、可放置、可调整大小、可排序等.
Maybe jQuery UI does what you are looking for. Its composed out of many handy helper functions like making objects draggable, droppable, resizable, sortable etc.
看看可通过连接列表排序.
这篇关于将列表中的元素拖放到单独的块中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!