Tag handler for {@link DragSourceBehavior}. Sets the "draggable" attribute of the parent and attaches the behavior to
the parent.
| Attributes |
| Name | Required | Request-time | Type | Description |
| action | false | false | javax.el.ValueExpression
(must evaluate to java.lang.String)
| Action of for drag operation. Can be one of below:
- copy: A copy of the source item may be made at the new location.
- move: An item may be moved to a new location.
- link: A link may be established to the source at the new location.
- none: The item may not be dropped.
If nothing is specified, the action will be defined by the browser and can be adjusted using the modifier keys.
If dropTarget does not accept the action of this dragSource, then the DnD will fail. |
| dropTargetTypes | false | false | javax.el.ValueExpression
(must evaluate to java.lang.Object)
| The types of the dropTargets that drags from this dragSource can be applied. Can be comma separated set or
String[] or Collection
If defined, drags from this dragSource will work into only the dropTargets that have one of the same type. The
drag will be accepted if 'types' of hx:dropTarget has one of the types defined here. |
| param | false | false | javax.el.ValueExpression
(must evaluate to java.lang.String)
| Data to send to server when a successful drag and drop happens from this source.
The param can be received using the {@link DropEvent#getParam()} method at dropListener of the fx:dropTarget. |
| for | false | false | java.lang.String | {@inheritDoc} |