Child pages
  • DRAGNDROP
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »


Constants Summery
Number #COPY
Constant for copy drag operation.
Number #MOVE
Constant for move drag operation.
Number #NONE
Constant for no drag operation.

Constants Details
COPY
Constant for copy drag operation.
Returns
Number
Sample
function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
MOVE
Constant for move drag operation.
Returns
Number
Sample
function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
NONE
Constant for no drag operation.
Returns
Number
Sample
function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
  • No labels