You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
874 B
49 lines
874 B
define( [
|
|
"lib/common",
|
|
"ui/widgets/draggable"
|
|
], function( common ) {
|
|
|
|
common.testWidget( "draggable", {
|
|
defaults: {
|
|
appendTo: "parent",
|
|
axis: false,
|
|
cancel: "input, textarea, button, select, option",
|
|
classes: {},
|
|
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,
|
|
zIndex: false,
|
|
|
|
//Todo: remove the following option checks when interactions are rewritten:
|
|
addClasses: true,
|
|
delay: 0,
|
|
distance: 1,
|
|
iframeFix: false,
|
|
|
|
// Callbacks
|
|
create: null,
|
|
drag: null,
|
|
start: null,
|
|
stop: null
|
|
}
|
|
} );
|
|
|
|
} );
|