Module wicket.bootstrap.extensions
Class DraggableConfig
java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.behavior.DraggableConfig
- All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config,Serializable,IClusterable
public class DraggableConfig
extends de.agilecoders.wicket.jquery.AbstractConfig
PopoverBehavior configuration- Author:
- miha
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClasses(boolean value) If set to false, will prevent the ui-draggable class from being added.Axis(DraggableConfig.Axis value) Constrains dragging to either the horizontal (x) or vertical (y) axis.withCursor(String value) The CSS cursor during the drag operation.withHandle(String value) If specified, restricts dragging from starting unless the mousedown occurs on the specified element(s).Methods inherited from class de.agilecoders.wicket.jquery.AbstractConfig
all, contains, get, getString, isEmpty, newKey, put, remove, toJsonString, wrapMethods inherited from class de.agilecoders.wicket.jquery.CombinableConfig
combine, withFallback
-
Constructor Details
-
DraggableConfig
public DraggableConfig()
-
-
Method Details
-
Axis
Constrains dragging to either the horizontal (x) or vertical (y) axis. Possible values: "x", "y".- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining
-
addClasses
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.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining
-
withCursor
The CSS cursor during the drag operation.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining
-
withHandle
If specified, restricts dragging from starting unless the mousedown occurs on the specified element(s).- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining
-