問題描述
我有一個(gè)應(yīng)用程序,我希望能夠?qū)ζ溥M(jìn)行拖放以重新排序并將顏色分組.jQuery 用于網(wǎng)格的 : HTML5 Sortable.它是一個(gè)使用原生 HTML5 拖放 API 創(chuàng)建可排序列表和網(wǎng)格的 jQuery 插件.
I have an app for which I would like to be able to drag and drop to reorder and arrange colours into groups. jQuery's sortable for grids seems rather unresponsive and a little buggy. microjs recommends kbjr's DragDrop, but that library has no concept of lists, only movable objects. Sproutcore has a nice implementation, but I can't find a demo of it working for a grid.
My UI looks like this:
and I'd like users to be able to drag colours around within the groups as well as drag them between groups.
Try this: HTML5 Sortable. It is a jQuery plugin to create sortable lists and grids using native HTML5 drag and drop API.
這篇關(guān)于拖放以重新排序 HTML 列表的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!