2015-04-06 16:42:49 +00:00
|
|
|
define( [
|
|
|
|
"lib/common",
|
2015-07-15 01:59:40 +00:00
|
|
|
"ui/widgets/draggable"
|
2015-04-06 16:42:49 +00:00
|
|
|
], function( common ) {
|
|
|
|
|
|
|
|
common.testWidget( "draggable", {
|
2012-04-19 17:03:21 +00:00
|
|
|
defaults: {
|
|
|
|
appendTo: "parent",
|
|
|
|
axis: false,
|
2015-03-26 11:41:37 +00:00
|
|
|
cancel: "input, textarea, button, select, option",
|
2014-12-03 16:20:20 +00:00
|
|
|
classes: {},
|
2012-04-19 17:03:21 +00:00
|
|
|
connectToSortable: false,
|
|
|
|
containment: false,
|
|
|
|
cursor: "auto",
|
|
|
|
cursorAt: false,
|
|
|
|
disabled: false,
|
|
|
|
grid: false,
|
|
|
|
handle: false,
|
|
|
|
helper: "original",
|
|
|
|
opacity: false,
|
|
|
|
refreshPositions: false,
|
|
|
|
revert: false,
|
|
|
|
revertDuration: 500,
|
|
|
|
scroll: true,
|
|
|
|
scrollSensitivity: 20,
|
|
|
|
scrollSpeed: 20,
|
|
|
|
scope: "default",
|
|
|
|
snap: false,
|
|
|
|
snapMode: "both",
|
|
|
|
snapTolerance: 20,
|
|
|
|
stack: false,
|
2013-01-02 23:27:22 +00:00
|
|
|
zIndex: false,
|
|
|
|
|
2013-01-12 05:33:45 +00:00
|
|
|
//todo: remove the following option checks when interactions are rewritten:
|
|
|
|
addClasses: true,
|
|
|
|
delay: 0,
|
|
|
|
distance: 1,
|
|
|
|
iframeFix: false,
|
|
|
|
|
2015-08-21 04:11:02 +00:00
|
|
|
// Callbacks
|
2013-01-02 23:27:22 +00:00
|
|
|
create: null,
|
|
|
|
drag: null,
|
|
|
|
start: null,
|
|
|
|
stop: null
|
2012-04-19 17:03:21 +00:00
|
|
|
}
|
|
|
|
});
|
2015-04-06 16:42:49 +00:00
|
|
|
|
|
|
|
} );
|