mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Interactions: Update widget defaults to match documented API.
This commit is contained in:
parent
cf7dc089e0
commit
f667d090a7
@ -6,7 +6,6 @@ TestHelpers.commonWidgetTests( "draggable", {
|
|||||||
cancel: "input,textarea,button,select,option",
|
cancel: "input,textarea,button,select,option",
|
||||||
connectToSortable: false,
|
connectToSortable: false,
|
||||||
containment: false,
|
containment: false,
|
||||||
create: null,
|
|
||||||
cursor: "auto",
|
cursor: "auto",
|
||||||
cursorAt: false,
|
cursorAt: false,
|
||||||
delay: 0,
|
delay: 0,
|
||||||
@ -28,6 +27,12 @@ TestHelpers.commonWidgetTests( "draggable", {
|
|||||||
snapMode: "both",
|
snapMode: "both",
|
||||||
snapTolerance: 20,
|
snapTolerance: 20,
|
||||||
stack: false,
|
stack: false,
|
||||||
zIndex: false
|
zIndex: false,
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
create: null,
|
||||||
|
drag: null,
|
||||||
|
start: null,
|
||||||
|
stop: null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3,11 +3,18 @@ TestHelpers.commonWidgetTests( "droppable", {
|
|||||||
accept: "*",
|
accept: "*",
|
||||||
activeClass: false,
|
activeClass: false,
|
||||||
addClasses: true,
|
addClasses: true,
|
||||||
create: null,
|
|
||||||
disabled: false,
|
disabled: false,
|
||||||
greedy: false,
|
greedy: false,
|
||||||
hoverClass: false,
|
hoverClass: false,
|
||||||
scope: "default",
|
scope: "default",
|
||||||
tolerance: "intersect"
|
tolerance: "intersect",
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
activate: null,
|
||||||
|
create: null,
|
||||||
|
deactivate: null,
|
||||||
|
drop: null,
|
||||||
|
out: null,
|
||||||
|
over: null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,9 @@ TestHelpers.commonWidgetTests("resizable", {
|
|||||||
zIndex: 90,
|
zIndex: 90,
|
||||||
|
|
||||||
// callbacks
|
// callbacks
|
||||||
create: null
|
create: null,
|
||||||
|
resize: null,
|
||||||
|
start: null,
|
||||||
|
stop: null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3,11 +3,19 @@ TestHelpers.commonWidgetTests("selectable", {
|
|||||||
appendTo: "body",
|
appendTo: "body",
|
||||||
autoRefresh: true,
|
autoRefresh: true,
|
||||||
cancel: "input,textarea,button,select,option",
|
cancel: "input,textarea,button,select,option",
|
||||||
create: null,
|
|
||||||
delay: 0,
|
delay: 0,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
distance: 0,
|
distance: 0,
|
||||||
filter: "*",
|
filter: "*",
|
||||||
tolerance: "touch"
|
tolerance: "touch",
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
create: null,
|
||||||
|
selected: null,
|
||||||
|
selecting: null,
|
||||||
|
start: null,
|
||||||
|
stop: null,
|
||||||
|
unselected: null,
|
||||||
|
unselecting: null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,6 @@ TestHelpers.commonWidgetTests( "sortable", {
|
|||||||
cancel: "input,textarea,button,select,option",
|
cancel: "input,textarea,button,select,option",
|
||||||
connectWith: false,
|
connectWith: false,
|
||||||
containment: false,
|
containment: false,
|
||||||
create: null,
|
|
||||||
cursor: "auto",
|
cursor: "auto",
|
||||||
cursorAt: false,
|
cursorAt: false,
|
||||||
delay: 0,
|
delay: 0,
|
||||||
@ -26,6 +25,21 @@ TestHelpers.commonWidgetTests( "sortable", {
|
|||||||
scrollSpeed: 20,
|
scrollSpeed: 20,
|
||||||
scope: "default",
|
scope: "default",
|
||||||
tolerance: "intersect",
|
tolerance: "intersect",
|
||||||
zIndex: 1000
|
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
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
7
ui/jquery.ui.draggable.js
vendored
7
ui/jquery.ui.draggable.js
vendored
@ -42,7 +42,12 @@ $.widget("ui.draggable", $.ui.mouse, {
|
|||||||
snapMode: "both",
|
snapMode: "both",
|
||||||
snapTolerance: 20,
|
snapTolerance: 20,
|
||||||
stack: false,
|
stack: false,
|
||||||
zIndex: false
|
zIndex: false,
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
drag: null,
|
||||||
|
start: null,
|
||||||
|
stop: null
|
||||||
},
|
},
|
||||||
_create: function() {
|
_create: function() {
|
||||||
|
|
||||||
|
9
ui/jquery.ui.droppable.js
vendored
9
ui/jquery.ui.droppable.js
vendored
@ -30,7 +30,14 @@ $.widget("ui.droppable", {
|
|||||||
greedy: false,
|
greedy: false,
|
||||||
hoverClass: false,
|
hoverClass: false,
|
||||||
scope: "default",
|
scope: "default",
|
||||||
tolerance: "intersect"
|
tolerance: "intersect",
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
activate: null,
|
||||||
|
deactivate: null,
|
||||||
|
drop: null,
|
||||||
|
out: null,
|
||||||
|
over: null
|
||||||
},
|
},
|
||||||
_create: function() {
|
_create: function() {
|
||||||
|
|
||||||
|
7
ui/jquery.ui.resizable.js
vendored
7
ui/jquery.ui.resizable.js
vendored
@ -43,7 +43,12 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|||||||
minHeight: 10,
|
minHeight: 10,
|
||||||
minWidth: 10,
|
minWidth: 10,
|
||||||
// See #7960
|
// See #7960
|
||||||
zIndex: 90
|
zIndex: 90,
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
resize: null,
|
||||||
|
start: null,
|
||||||
|
stop: null
|
||||||
},
|
},
|
||||||
_create: function() {
|
_create: function() {
|
||||||
|
|
||||||
|
10
ui/jquery.ui.selectable.js
vendored
10
ui/jquery.ui.selectable.js
vendored
@ -22,7 +22,15 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|||||||
autoRefresh: true,
|
autoRefresh: true,
|
||||||
distance: 0,
|
distance: 0,
|
||||||
filter: "*",
|
filter: "*",
|
||||||
tolerance: "touch"
|
tolerance: "touch",
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
selected: null,
|
||||||
|
selecting: null,
|
||||||
|
start: null,
|
||||||
|
stop: null,
|
||||||
|
unselected: null,
|
||||||
|
unselecting: null
|
||||||
},
|
},
|
||||||
_create: function() {
|
_create: function() {
|
||||||
var selectees,
|
var selectees,
|
||||||
|
16
ui/jquery.ui.sortable.js
vendored
16
ui/jquery.ui.sortable.js
vendored
@ -47,7 +47,21 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|||||||
scrollSpeed: 20,
|
scrollSpeed: 20,
|
||||||
scope: "default",
|
scope: "default",
|
||||||
tolerance: "intersect",
|
tolerance: "intersect",
|
||||||
zIndex: 1000
|
zIndex: 1000,
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
activate: null,
|
||||||
|
beforeStop: null,
|
||||||
|
change: null,
|
||||||
|
deactivate: null,
|
||||||
|
out: null,
|
||||||
|
over: null,
|
||||||
|
receive: null,
|
||||||
|
remove: null,
|
||||||
|
sort: null,
|
||||||
|
start: null,
|
||||||
|
stop: null,
|
||||||
|
update: null
|
||||||
},
|
},
|
||||||
_create: function() {
|
_create: function() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user