Child pages
  • DRAGNDROP

Versions Compared

Key

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

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#COPY
Constant for copy drag operation.

...

Table Cell (td)
String

...

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
Divcache
styleindexdisplay:none

...

iddescription

...

padding0px
width80px

...

Table Cell (td)
String

...

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Constants SummaryConstant for copy drag operation.Constant used as mime type for servoy objects.

...

Constant used as mime type for servoy record objects.

...

Table Cell (td)
Number

...

Constant for move drag operation.

...

Table Cell (td)
Number

...

id
HTML Table
Constant for no drag operation.

...

servoy sDetail2Constants DetailsCOPYname

COPY

dessIndent
Constant for copy drag operation.
idtd
ret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
SmartClient,WebClient,NGClientsam

Sample

constant

class
Colgroup Tag
Column
padding0px
width100%
Table Row (tr)
style2100%height:30px;
Table Head (th)
colspan1
Table Body (tbody)
idid
Table Row (tr)
Table Cell (td)
id
Table Row (tr)
Table Cell (td)
Div
class
Table Row (tr)
Number
Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
Table Body (tbody)
id
Div
classsIndent
Code Block
languagejavascript

function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
sIdentjavascriptlastDetailRowMIME_TYPE_SERVOY Table Row (tr)idtdname

MIME_TYPE_SERVOY

Table Row (tr)id Table Cell (td) Divclass

dessIndent
Constant used as mime type for servoy objects.
Table Row (tr)idtd
ret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)idSmartClient,WebClient,NGClientsam

Sample

Div
classsIndent
Code Block
languagejavascript

if (event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY || event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {
	application.output("Dropping is allowed" );
	return true;
} else { 
	application.output("Dropping is not allowed" );
	return false;
}
sIdentjavascriptlastDetailRowMIME_TYPE_SERVOY_RECORD Table Row (tr)idtdname

MIME_TYPE_SERVOY_RECORD

tr

id Table Cell (td) DivclassdessIndent
Constant used as mime type for servoy record objects.
Table Row (tr)idtd
ret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idMOVE
Table Row (tr)
idname
Table Cell (td)
MOVE
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant for move drag operation.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idNONE
Table Row (tr)
idname
Table Cell (td)
NONE
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant for no drag operation.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
Table Row (tr)
classlastDetailRow
tdSmartClient,WebClient,NGClientsam

Sample

Div
classsIndent
Code Block
languagejavascript

if (event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY || event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {
	application.output("Dropping is allowed" );
	return true;
} else { 
	application.output("Dropping is not allowed" );
	return false;
}
sIdentjavascriptlastDetailRowMOVEname

MOVE

dessIndent
Constant for move drag operation.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
NONEname

NONE

dessIndent
Constant for no drag operation.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow