jquery Sortable参数jquery Sortable参数jquery Sortable参数
jquery Sortable参数 收藏 JQuery UI - sortable
2010-08-01 18:53:44
标签:sortable jquery ui [推送到技术圈]
所有的事件回调函数都有两个参数:event和ui,浏览器自有event对象,和经过封装的ui对象 ui.helper - 表示sortable元素的JQuery对象,通常是当前元素的克隆对象
ui.position - 表示相对当前对象,鼠标的坐标值对象{top,left}
ui.offset - 表示相对于当前页面,鼠标的坐标值对象{top,left}
ui.item - 表示当前拖拽的元素
ui.placeholder - 占位符(如果有定义的话)
ui.sender - 当前拖拽元素的所属sortable对象(仅当元素是从另一个sortable对象传递过来时有用) ·参数(参数名 : 参数类型 : 默认值)
appendTo : String : 'parent'
Defines where the helper that moves with the mouse is being appended to during the drag (for example, to resolve overlap/zIndex issues).
初始:$('.selector').sortable({ appendTo: 'body' });
获取:var appendTo = $('.selector').sortable('option', 'appendTo');
设置:$('.selector').sortable('option', 'appendTo', 'body');
axis : String : false
如果有设置,则元素仅能横向或纵向拖动。可选值:'x', 'y'
初始:$('.selector').sortable({ axis: 'x' });
获取:var axis = $('.selector').sortable('option', 'axis');
设置:$('.selector').sortable('option', 'axis', 'x');
cancel : Selector : ':input,button'
阻止排序动作在匹配的元素上发生。
初始:$('.selector').sortable({ cancel: 'button' });
获取:var cancel = $('.selector').sortable('option', 'cancel');
设置:$('.selector').sortable('option', 'cancel', 'button');
connectWith : Selector : false
允许sortable对象连接另一个sortable对象,可将item元素拖拽到另一个中。 初始:$('.selector').sortable({ connectWith: '.otherlist' });
获取:var connectWith = $('.selector').sortable('option', 'connectWith'); 设置:$('.selector').sortable('option', 'connectWith', '.otherlist');
containment : Element, String, Selector : false
jQuery jqGrid中ColModel的参数大全(详解带实例)_计算机软件及应用_IT/计算机_... jquery Sortable参数 6页 免费 jquery上传插件uploadif... 7页 2下载券 ...
5页 5财富值 Jquery FlexiGrid配置参数... 2页 免费 jQuery的参数 1页 5财富值 jquery获取URL参数 12页 2财富值 jquery Sortable参数 6页 免费...
暂无评价 30页 免费 discuz源码分析 86页 免费 jquery获取URL参数 12页 2财富值 jquery Sortable参数 6页 免费 jquery_date参数说明 2页 2财富值...
jquery.dimensions.js ui.mouse.js ui.draggable.js ui.droppable.js ui.sortable.js 用法: $(document).ready(function(){ $("#myList").sortable({}); ...
jquery.dimensions.js ui.mouse.js ui.draggable.js ui.droppable.js ui.sortable.js 用法: $(document).ready(function(){ $("#myList").sortable({}); ...
JQuery 插件FlexiGrid 之完全配置与使用_IT/计算机_专业资料。JQuery 插件Flexi...{display: '信息标题 ', name : 'RITITLE', width : 250, sortable : ...
Jquery Jqgrid使用手册_IT/计算机_专业资料。jquery jqgrid完全使用收册 参数...如果 true Fit ean 为 false,则列宽度使用 colModel 指定的宽度 sortable ...
Jquery插件 easyUI属性汇总此属性列表请对照jQuery EasyUI 1.0.5,关于它的更多...7)sortable:当true时,允许该列进行排序。 8)checkbox:当true时,允许该列出现...
{ display :'编号', name :'id', width :60, sortable :true, align :'...了几个参数,与 jquery.flexigrid.trace.js 第 591 行的 param 参数相同,可...
(option),通过 jQuery提供的方法初始化UI对象时,可以在方法的参数中同时初 始...?【例8-5】演示sortable的基本用法。 8.2 联合使用ASP.NET AJAX和jQuery UI...
热门文档