微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jQuery Dynamic

程序名称:jQuery Dynamic

授权协议: 未知

操作系统: 未知

开发语言:

jQuery Dynamic 介绍

Dragable, Dropable and Resizeable plugins in one pack.

$(‘#object’).dragable({
clone: true,
opacity: 0.5,
target: ‘#otherobject’,
over: function( obj, target ) {…},
out: function( obj, target ) {…},
drop: function ( obj , target) {…}
}).resizeable();

Parameters list:

  • direction, resizeDirection - ‘h’ or ‘v’
  • edge - {x1, x2, y1, y2}
  • start, move, end - dragable callback functions( o ) // start(o, dom event), move(o, dom event)
  • over, moveover, out, drop - dropable target callback functions( o , target jquery object )
  • resizeStart, resize, resizeEnd - resizeable callback functions( o )
  • handlerPosition - custom function(o, handler jquery object) for setting the resize handler position
  • moveHandler - move handler object / whatever that might be given to $()
  • moveHandlerOutside - bool (false by default) - tells plugin to look moveHandler (jquery selector) outside of elem object (useful with mass dragging)
  • / if not set, plugin will look inside of elem - $(moveHandler, o.elem)
  • target - collection of target objects for dropping / whatever that might be given to $()
  • renewTarget - target collection should be renewed before moving
  • tolerance - ‘intersect’, ‘leftcorn’, ‘pointer’ - the way two object should intersect / todo: more modes
  • clone - bool or callback(o, new jquery object) - do not drag the actual object, use clone
  • cloneRemove - callback(o, cloned jquery object) - called before object.remove();
  • / if returns false, object.remove() will not be called and also the position of the original element will not be updated
  • / useful for drag’n’drop creation of objects
  • moveReplacer - jquery object / can be used instead of clone / if both set, plugin will choose replacer
  • / clone and cloneRemove callbacks, if set, will be called too with the same logic
  • / moveReplacer will not be removed from dom anyway
  • opacity, initialOpacity - (string) double - opacity of dragged object ( default element, cloned element, or replacer element - no matter)
  • zIndex - if set, it will be used while dragging, and initial z-index from style will be restored on mouseup event
  • proportion, min, max - {w, h}
  • resizeHandlerClass - initial class for resize handler
  • parent - jquery object of parent element / if edge is not set, it will be taken from parent element

jQuery Dynamic 官网

http://plugins.jquery.com/project/Dynamic

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐