public class DraggableConfig
extends de.agilecoders.wicket.jquery.AbstractConfig
PopoverBehavior configuration
| Modifier and Type | Class and Description |
|---|---|
static class |
DraggableConfig.Axis
all possible axis
|
| Constructor and Description |
|---|
DraggableConfig() |
| Modifier and Type | Method and Description |
|---|---|
DraggableConfig |
addClasses(boolean value)
If set to false, will prevent the ui-draggable class from being added.
|
DraggableConfig |
Axis(DraggableConfig.Axis value)
Constrains dragging to either the horizontal (x) or vertical (y) axis.
|
DraggableConfig |
withCursor(String value)
The CSS cursor during the drag operation.
|
DraggableConfig |
withHandle(String value)
If specified, restricts dragging from starting unless the mousedown occurs on the specified element(s).
|
public DraggableConfig Axis(DraggableConfig.Axis value)
Constrains dragging to either the horizontal (x) or vertical (y) axis. Possible values: “x”, “y”.
value - mandatory parameterpublic DraggableConfig addClasses(boolean value)
If set to false, will prevent the ui-draggable class from being added. This may be desired as a performance optimization when calling .draggable() on hundreds of elements.
value - mandatory parameterpublic DraggableConfig withCursor(String value)
The CSS cursor during the drag operation.
value - mandatory parameterpublic DraggableConfig withHandle(String value)
If specified, restricts dragging from starting unless the mousedown occurs on the specified element(s).
value - mandatory parameterCopyright © 2011–2014 AgileCoders. All rights reserved.