jQuery sortable - 如何添加排序指标?

时间:2022-02-02 14:30:26

I've successfully implemented the jQuery sortable() plugin but want to enhance it with a sort indicator. This would be a vertical bar in between the items where the draggable can be dropped. See the image below for an example. Can this easily be achieved with the sortable() plugin?

我已成功实现了jQuery sortable()插件,但希望使用排序指示器来增强它。这将是可拖动拖拽的项目之间的垂直条。有关示例,请参见下图。使用sortable()插件可以轻松实现吗?

alt text http://www.host2000.be/_temp/sortable.jpg

alt text http://www.host2000.be/_temp/sortable.jpg

1 个解决方案

#1


Use a drop placeholder with a style that only shows the border on one side.

使用具有仅在一侧显示边框的样式的放置占位符。

#1


Use a drop placeholder with a style that only shows the border on one side.

使用具有仅在一侧显示边框的样式的放置占位符。