开发者

PHP MySQL JQuery Back-End for Data Driven Menu

开发者 https://www.devze.com 2023-01-29 09:12 出处:网络
I am looking for tutorials, articles etc. on how to create a JQuery reorder list for administration of a data driven menu. Instead of typing in parent ids for positioning, I want to be able to d开发者

I am looking for tutorials, articles etc. on how to create a JQuery reorder list for administration of a data driven menu. Instead of typing in parent ids for positioning, I want to be able to d开发者_高级运维rag menu items into position or use up/down arrows or something similar that creates a more intuitive and visual way to manipulate menu items.

Can anyone suggest anything.

Thanks!


I created an example to show the basic principal behind such a menu. It's very bare bones but maybe it will get you started. http://jsfiddle.net/Zevan/UxLqV/2/

The key is basically:

  1. draw a few divs based on outside information
  2. make the divs vertically draggable
  3. onmouseup sort all the divs on their Y position and correct any messed up spacing resulting from the drag
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号