Child pages
  • Client Design Mode

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
/**
 * Handle a drag over. Determines of a drop is allowed in this location.
 *
 * Return true is drop is allowed, otherwise false.
 *
 * @param {JSDNDEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"A97879DD-6465-4A89-8210-122C94857626"}
 */
function onDragOver(event) {
	// TODO Auto-generated method stub
	if (event.getSource() && event.data) {
		return true;
	}
	return false;
}
onDrag

 * Handle  Handle start of a drag, it can set the data that should be transfered and should return a constant which dragndrop mode/modes is/are supported.
 *   
  * Should return a DRAGNDROP constant or a combination of 2 constants:
  * DRAGNDROP.MOVE if only a move can happen,
  * DRAGNDROP.COPY if only a copy can happen,
  * DRAGNDROP.MOVE|DRAGNDROP.COPY if a move or copy can happen,
  * DRAGNDROP.NONE if nothing is supported (drag should not start).

onDragEnd

Handle end of a drag. This is a good place to save the position and size of the element.

onDragOver

 * Handle a drag over. Determines of a drop is allowed in this location.
 *
 * Return true is drop is allowed, otherwise false.

onDrop