| start | ใช้กำหนด function ที่จะถูกเรียกใช้เมื่อการ drag เริ่มขึ้น |
|---|
config:start
return type:function
content:ใช้กำหนด function ที่จะถูกเรียกใช้เมื่อการ drag เริ่มขึ้น โดยจะมี parameter 2 ตัว ได้แก่ event object และ object ที่มี property ดังนี้ helper จะคืนค่า helper element, position จะคืนค่า object ที่มี property ของ top และ left ของ การเริ่มต้น drag, offset จะเก็บค่าเหมือน cursorAt, draggable เป็น draggable object และ options
example:$("div.box").draggable( { start: function(event,object) { alert ( "drag start" ); } } );