mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
d86ac025ee
Ref #14246 Ref gh-1588
54 lines
915 B
JavaScript
54 lines
915 B
JavaScript
define( [
|
|
"lib/common",
|
|
"ui/widgets/sortable"
|
|
], function( common ) {
|
|
|
|
common.testWidget( "sortable", {
|
|
defaults: {
|
|
appendTo: "parent",
|
|
axis: false,
|
|
cancel: "input, textarea, button, select, option",
|
|
classes: {},
|
|
connectWith: false,
|
|
containment: false,
|
|
cursor: "auto",
|
|
cursorAt: false,
|
|
delay: 0,
|
|
disabled: false,
|
|
distance: 1,
|
|
dropOnEmpty: true,
|
|
forcePlaceholderSize: false,
|
|
forceHelperSize: false,
|
|
grid: false,
|
|
handle: false,
|
|
helper: "original",
|
|
items: "> *",
|
|
opacity: false,
|
|
placeholder: false,
|
|
revert: false,
|
|
scroll: true,
|
|
scrollSensitivity: 20,
|
|
scrollSpeed: 20,
|
|
scope: "default",
|
|
tolerance: "intersect",
|
|
zIndex: 1000,
|
|
|
|
// Callbacks
|
|
activate: null,
|
|
beforeStop: null,
|
|
change: null,
|
|
create: null,
|
|
deactivate: null,
|
|
out: null,
|
|
over: null,
|
|
receive: null,
|
|
remove: null,
|
|
sort: null,
|
|
start: null,
|
|
stop: null,
|
|
update: null
|
|
}
|
|
});
|
|
|
|
} );
|