Child pages
  • DRAGNDROP

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#COPY] Constant for copy drag operation.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MOVE] Constant for move drag operation.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NONE] Constant for no drag operation.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=60315764-14BC-435F-ABBE-77868E05080D}{tr:id=name}{td}h6.COPY{td}{tr}{tr:id=des}{td}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_des|text=|trigger=button}{sub-section}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_des|trigger=none|class=sIndent}
Wiki Markup
Cache
indextrue
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.Constant for move drag operation.Constant for no drag operation.

constantservoy sDetail2100%height:30px2Constants DetailsCOPYname

COPY

dessIndent
Constant for copy drag operation.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:60315764-14BC-435F-ABBE-77868E05080D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:60315764-14BC-435F-ABBE-77868E05080D_ret|text=|trigger=button}{sub-section}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:60315764-14BC-435F-ABBE-77868E05080D_see|text=|trigger=button}{sub-section}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:60315764-14BC-435F-ABBE-77868E05080D_see|text=|trigger=button}{sub-section}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:60315764-14BC-435F-ABBE-77868E05080D_sam|text=|trigger=button}{sub-section}{sub-section:60315764-14BC-435F-ABBE-77868E05080D_sam|class=sIndent|trigger=none}{code:language=javascript} function startDrag(event) { if(event.getElementName() == "copy") return DRAGNDROP.COPY; else if(event.getElementName() == "move") return DRAGNDROP.MOVE return DRAGNDROP.NONE; } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9}{tr:id=name}{td}h6.MOVE{td}{tr}{tr:id=des}{td}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_des|text=|trigger=button}{sub-section}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_des|trigger=none|class=sIndent}
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowMIME_TYPE_SERVOYname

MIME_TYPE_SERVOY

dessIndent
Constant used as mime type for servoy objects.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
MIME_TYPE_SERVOY_RECORDname

MIME_TYPE_SERVOY_RECORD

dessIndent
Constant used as mime type for servoy record objects.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
MOVEname

MOVE

dessIndent
Constant for move drag operation.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_ret|text=|trigger=button}{sub-section}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_see|text=|trigger=button}{sub-section}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_see|text=|trigger=button}{sub-section}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_sam|text=|trigger=button}{sub-section}{sub-section:32229AE8-B8F9-42E9-ACF7-E5498FDB8DB9_sam|class=sIndent|trigger=none}{code:language=javascript} function startDrag(event) { if(event.getElementName() == "copy") return DRAGNDROP.COPY; else if(event.getElementName() == "move") return DRAGNDROP.MOVE return DRAGNDROP.NONE; } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DA49723C-1531-4448-9AD5-81B95EB44E97}{tr:id=name}{td}h6.NONE{td}{tr}{tr:id=des}{td}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_des|text=|trigger=button}{sub-section}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_des|trigger=none|class=sIndent}
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowNONEname

NONE

dessIndent
Constant for no drag operation.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_ret|text=|trigger=button}{sub-section}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_see|text=|trigger=button}{sub-section}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_see|text=|trigger=button}{sub-section}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_sam|text=|trigger=button}{sub-section}{sub-section:DA49723C-1531-4448-9AD5-81B95EB44E97_sam|class=sIndent|trigger=none}{code:language=javascript} function startDrag(event) { if(event.getElementName() == "copy") return DRAGNDROP.COPY; else if(event.getElementName() == "move") return DRAGNDROP.MOVE return DRAGNDROP.NONE; } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow