Class SS.control.dropzone
Drop Zone. Areas on a page that moveable objects can be dropped into
Defined in: SS.control.dropzone.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
Identifier of the dropzone control.
|
|
|
Contains the item that is in focus
|
|
|
Contains the last item dropped in the drop zone
|
|
|
Next Sibling to the move that is currently being moved.
|
|
|
Parent node that the element was previously attached to
|
|
|
Function called or evaluated {String} whenever the component leaves the drop zone.
|
|
|
Function called or evaluated {String} whenever a component is dropped / released in
the drop zone.
|
|
|
Function called or evaluated {String} whenever the drop zone is in focus.
|
|
|
Function called or evaluated {String} whenever a component leaves the drop zone.
|
| Method Attributes | Method Name and Description |
|---|---|
|
Function called to cancel the dropping of an element and return it to its original position
in the document tree.
|
|
|
DragBlur(e, c)
Function called when a control is dragged out of focus from the drop zone.
|
|
|
DragDrop(e, c)
Function called when a control is dropped in the drop zone.
|
|
|
DragFocus(e, c)
Function called when a control is dragged into the focus of the drop zone.
|
|
|
DragLeave(e, c)
Function called when a control is removed from the drop zone.
|
|
|
render()
Registers the drop zone control on the page so that it can receive events.
|
Field Detail
id
Identifier of the dropzone control.
inFoucs
Contains the item that is in focus
lastDropped
Contains the last item dropped in the drop zone
lastNextSibling
Next Sibling to the move that is currently being moved.
lastParent
Parent node that the element was previously attached to
onblur
Function called or evaluated {String} whenever the component leaves the drop zone.
ondrop
Function called or evaluated {String} whenever a component is dropped / released in
the drop zone.
onfocus
Function called or evaluated {String} whenever the drop zone is in focus.
This occurs when a moveable object has is dragged over the drop zone.
onleave
Function called or evaluated {String} whenever a component leaves the drop zone.
Method Detail
cancelDrop()
Function called to cancel the dropping of an element and return it to its original position
in the document tree.
- Returns:
- null
DragBlur(e, c)
Function called when a control is dragged out of focus from the drop zone.
This handles the calling of the function SS.control.dropzone.onblur.
- Parameters:
- {Event} e
- Event.
- {HTMLElement} c
- Element that has been dragged into the drop zone.
- Returns:
- null
DragDrop(e, c)
Function called when a control is dropped in the drop zone.
This handles the calling of the function SS.control.dropzone.ondrop.
- Parameters:
- {Event} e
- Event.
- {HTMLElement} c
- Element that has been dragged into the drop zone.
- Returns:
- null
DragFocus(e, c)
Function called when a control is dragged into the focus of the drop zone.
This handles the calling of the function SS.control.dropzone.onfocus.
- Parameters:
- {Event} e
- Event.
- {HTMLElement} c
- Element that has been dragged into the drop zone.
- Returns:
- null
DragLeave(e, c)
Function called when a control is removed from the drop zone.
This handles the calling of the function SS.control.dropzone.onleave.
- Parameters:
- {Event} e
- Event.
- {HTMLElement} c
- Element that has left the drop zone.
- Returns:
- null
render()
Registers the drop zone control on the page so that it can receive events.
