Draggable
Plugin to make any object draggable.
Version 2.0
Based on:
http://draggabilly.desandro.com/
slDraggableInit
Purpose: |
Makes an object draggable by user |
Category: |
Draggable |
Syntax: |
slDraggableInit "containerId" axis "contenedor" gridx gridy "elhandle"
containerId Select an Object to make it draggable axis Axis. contenedor Constrain movement within other Object limits (Optional) gridx Grid X (Optional) gridy Grid Y (Optional) elhandle Object to be used as handle (Optional) |
slDraggableSetDropObject
Purpose: |
Set a correct target drop object for a draggable one |
Category: |
Draggable |
Syntax: |
slDraggableSetDropObject "containerId" "dropId" dropposition ondropsuccess ondropfail
containerId Draggable object dropId Target drop object dropposition Drop position relative to target object ondropsuccess On drop success subroutine ondropfail On drop fail subroutine |
slDraggableSetEvents
Purpose: |
Set subroutines to execute under different drag events. |
Category: |
Draggable |
Syntax: |
slDraggableSetEvents "containerId" ondragstart ondragmove ondragend
containerId Draggable object ondragstart On drag start subroutine ondragmove On drag move subroutine ondragend On drag end subroutine |
slDraggableDisable
Purpose: |
Disable dragging temporaly |
Category: |
Draggable |
Syntax: |
slDraggableDisable "containerId"
containerId Draggable object |
slDraggableEnable
Purpose: |
Re-enable dragging after disable. |
Category: |
Draggable |
Syntax: |
slDraggableEnable "containerId"
containerId Draggable object |
slDraggableSetPosition
Purpose: |
Set the draggable object position |
Category: |
Draggable |
Syntax: |
slDraggableSetPosition "containerId" "xpos" "ypos"
containerId Draggable object xpos x position ypos y position |
slDraggableGetPositionX
Purpose: |
Get draggable object X coordinate |
Category: |
Draggable |
Syntax: |
slDraggableGetPositionX "containerId" [resultvar]
containerId Draggable object resultvar Variable to store result |
slDraggableGetPositionY
Purpose: |
Get draggable object Y coordinate |
Category: |
Draggable |
Syntax: |
slDraggableGetPositionY "containerId" [resultvar]
containerId Draggable object resultvar Variable to store result |
slDraggableDestroy
Purpose: |
Eliminate object draggability |
Category: |
Draggable |
Syntax: |
slDraggableDestroy "containerId"
containerId Draggable object |
slDraggable
Purpose: |
Makes an object draggable by user (deprecated, use neoDragleInit instead) |
Category: |
Draggable |
Syntax: |
slDraggable "containerId" axis "contenedor" gridx gridy "elhandle"
containerId Select an Object to make it draggable axis Axis. contenedor Constrain movement within other Object limits (Optional) gridx Grid X (Optional) gridy Grid Y (Optional) elhandle Object to be used as handle (Optional) |