AddClasses(bool addClasses)

Sets a value indicating whether to add the ui-draggable class to the draggable element.

Parameters

addClasses If true, the ui-draggable class is added to the element.

AppendTo(string selector)

Sets the jQuery selector that selects the element where the helper container will be appended to during the drag.

Parameters

selector The jQuery selector.

Axis(JQueryUIHelpers.Axis axis)

Sets the axis where the element can be dragged.

Parameters

axis The axis.

Cancel(string selector)

Sets the jQuery selector that selects the elements which prevent dragging if the user starts on them.

Parameters

selector The jQuery selector.

ConnectToSortable(string selector)

Allows the draggable to be dropped onto the sortable specified by the jQuery selector, and sets the helper element to 'clone'.

Parameters

selector The jQuery selector.

Containment(string selector)

Sets the jQuery selector that selects the element that constrains dragging.

Parameters

selector The jQuery selector.

Containment(JQueryUIHelpers.Containment containment)

Sets the element that constrains dragging.

Parameters

containment The element.

Containment(uint x1, uint y1, uint x2, uint y2)

Sets the element that constrains dragging.

Parameters

x1 The x-coordinate of the top left corner.
y1 The y-coordinate of the top left corner.
x2 The x-coordinate of the bottom right corner.
y2 The y-coordinate of the bottom right corner.

Cursor(JQueryUIHelpers.Cursor cursor)

Sets the cursor that is being shown while dragging.

Parameters

cursor The cursor.

CursorAt(JQueryUIHelpers.CursorPosition position)

Sets the cursor position relative to the element being dragged.

Parameters

position The position.

Delay(uint duration)

Sets the tolerance for when dragging should start. Dragging will not start until after the mouse is moved beyond the specified duration.

Parameters

duration The duration in milliseconds.

Disabled(bool disabled)

Sets a value indicating whether the draggable is disabled.

Parameters

disabled If true, the draggable is disabled.

Distance(uint distance)

Sets the tolerance for when dragging should start. Dragging will not start until after the mouse is moved beyond the specified distance.

Parameters

distance The distance in pixels.

Grid(uint x, uint y)

Snaps the helper to a grid specified by the x and y values.

Parameters

x The x value.
y The y value.

Handle(string selector)

Sets the jQuery selector that selects the elements which can start dragging.

Parameters

selector The jQuery selector.

Helper(string functionName)

Sets the name of the JavaScript function that returns the helper element.

Parameters

functionName The name of the function.

Helper(JQueryUIHelpers.DragHelper helper)

Sets the helper element.

Parameters

helper The helper element.

IframeFix(bool iframeFix)

Sets a value indicating whether iframes should ignore the mousemove events during a drag.

Parameters

iframeFix If true, prevents iframes from capturing the mousemove events during a drag.

IframeFix(string selector)

Prevent iframes specified by the jQuery selector from capturing the mousemove events during a drag.

Parameters

selector The jQuery selector.

Opacity(System.Double opacity)

Sets the opacity of the helper element.

Parameters

opacity The opacity from 0.01 to 1.

RefreshPositions(bool refreshPositions)

Sets a value indicating whether all droppable positions should be calculated on every mousemove.

Parameters

refreshPositions If true, all droppable positions are calculated on every mousemove.

Revert(JQueryUIHelpers.DraggableRevert revertMode)

Sets when should the element return to its starting position when dragging stops.

Parameters

revertMode The revert mode.

RevertDuration(uint duration)

Sets the duration of the revert animation.

Parameters

duration The duration is milliseconds.

Scope(string scope)

Sets the scope of the draggable.

Parameters

scope The scope name.

Scroll(bool scroll)

Sets a value indicating whether the container auto-scrolls while dragging.

Parameters

scroll If true, the container auto-scrolls when an item is moved to the edge.

ScrollSensitivity(uint sensitivity)

Defines how near the mouse must be to an edge to start scrolling.

Parameters

sensitivity The sensitivity in pixels.

ScrollSpeed(uint speed)

Sets the scroll speed.

Parameters

speed The speed.

Snap(bool snap)

Sets a value indicating whether the draggable should snap to the edges of other draggable elements.

Parameters

snap If true, the draggable will snap to other draggables.

Snap(string selector)

Sets the jQuery selector used to select the elements to which this draggable will snap.

Parameters

selector The jQuery selector.

SnapMode(JQueryUIHelpers.SnapMode mode)

Sets which edges of snap elements the draggable will snap to

Parameters

mode The snap mode.

SnapTolerance(uint distance)

Sets the distance from the snap element edges at which snapping should occur.

Parameters

distance The distance is pixels.

Stack(string selector)

Sets the jQuery selector used to select the elements that define a stack. The dragged element is always at the top of its stack.

Parameters

selector The jQuery selector.

ZIndex(int zIndex)

Sets the z-index of the helper element.

Parameters

zIndex The z-index.

OnCreate(string functionName)

Sets the name of the JavaScript function that is triggered when the draggable is created.

Parameters

functionName The name of the function.

OnDrag(string functionName)

Sets the name of the JavaScript function that is triggered when the mouse is moved during dragging.

Parameters

functionName The name of the function.

OnStart(string functionName)

Sets the name of the JavaScript function that is triggered when dragging starts.

Parameters

functionName The name of the function.

OnStop(string functionName)

Sets the name of the JavaScript function that is triggered when dragging stops.

Parameters

functionName The name of the function.