| containment | ให้กำหนด element ที่จะเป็น ขอบเขต ของการที่จะสามารถ drag ได้ |
|---|
config:containment
return type:string, object, element
content:ให้กำหนด element ที่จะเป็น ขอบเขต ของการที่จะสามารถ drag ได้ ดังนี้ parent, document, selector, object ( ที่มี property left, right, top, bottom ) effect (array) ให้กำหนด effect to cloned helpers โดยค่าทีเป็นไปได้ ได้แก่ ["fade","fade"] และ ["fade", ""] และ ["", "fade"] (default=false)
example:$("div.box").draggable( { containment: ["", "fade"] } );