Capítulo 192 de 411
Applies new drag bounds to an already-created Draggable instance, replacing whatever bounds it had before.
| Parameter | Type | Description |
|---|---|---|
| bounds | Element | String | Object | container element/selector, {top,left,width,height} rect, {minX,maxX,minY,maxY}, or {minRotation,maxRotation} |
draggableInstance.applyBounds("#container");
draggableInstance.applyBounds({ minX: 10, maxX: 300, minY: 50, maxY: 500 });
Draggable.create(target, {bounds: ...}).