Child pages
  • JSDNDEvent

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{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:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[NumberString]{td}{td}[#MODIFIER_ALT#ACTION]
Constant for the ALT modifier that can be returned by JSDNDEventJSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#MODIFIER_CTRL#DATACHANGE]
Constant for the CTRL modifier that can be returned by JSDNDEventJSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#MODIFIER_META#DOUBLECLICK]
Constant for the META modifier that can be returned by JSDNDEventJSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#MODIFIER_SHIFT#FOCUSGAINED]
Constant for the SHIFT modifier that can be returned by JSDNDEventJSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAG#FOCUSLOST]
Constant returned by JSDNDEventJSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAGEND#FORM]
Constant returned by JSDNDEventJSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[StringNumber]{td}{td}[#ONDRAGOVER#MODIFIER_ALT]
Constant for the ALT modifier that can be returned by JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[StringNumber]{td}{td}[#ONDROP#MODIFIER_CTRL]
Constant returnedfor the by JSDNDEvent.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{CTRL modifier that can be returned by JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[ObjectNumber]{td}{td}[#data#MODIFIER_META]
AConstant datafor objectthe thatMETA specificmodifier eventsthat can set,be areturned user can set data back to the system for events that supports thisby JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[StringNumber]{td}{td}[#dataMimeType#MODIFIER_SHIFT]
The event data mime typeConstant for the SHIFT modifier that can be returned by JSDNDEvent.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{trtbody}{tr}{td}[String]{td}{td}[#NONE]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAG]
Constant returned by JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#getDragResult#ONDRAGEND]\()
ReturnsConstant thereturned result of the drag actionby JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getElementName#ONDRAGOVER]\()
returnsConstant thereturned name of the element, can be null if the form was the source of the eventby JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getFormName#ONDROP]\()
returnsConstant thereturned name of the form the element was placed onby JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#getModifiers#RIGHTCLICK]\()
ReturnsConstant thereturned modifiers of the event, see JSDNDEventby JSEvent.{td}{tr}{tbody}{tbodytable}\\ 

{table:id=|class=servoy sSummary}{trcolgroup}{td}[JSRecord]{td}{td}[#getRecord]\()
Returns the record of the event.{tdcolumn:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#getSource]\()
returns the source component/element of the event#data]
A data object that specific events can set, a user can set data back to the system for events that supports this.{td}{tr}{tbody}{tbody}{tr}{td}[DateString]{td}{td}[#getTimestamp#dataMimeType]\()
ReturnsThe theevent timedata themime event occurredtype.{td}{tr}{tbody}{tbodytable}{tr\\ 

{table:id=|class=servoy sSummary}{tdcolgroup}[String]{td}{td}[#getType{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#getDragResult]\()
returnsReturns the dndresult eventof type see the JSDNDEvents constants what it can returndrag action.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#getX#getElementName]\()
Returnsreturns the x positionname of the eventelement, can be relativenull toif the componentform was thatthe firedsource it,of ifthe applicableevent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#getY#getFormName]\()
Returnsreturns the name yof positionthe ofform the event, relative to the component that fired it, if applicable.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=MODIFIER_ALTelement was placed on.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getModifiers]\()
Returns the modifiers of the event, see JSDNDEvent.{td}{tr}{tbody}{tbody}{tr}{td}[JSRecord]{td}{td}[#getRecord]\()
Returns the record of the event.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#getSource]\()
returns the source component/element of the event.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#getTimestamp]\()
Returns the time the event occurred.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getType]\()
returns the dnd event type see the JSDNDEvents constants what it can return.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getX]\()
Returns the x position of the event, relative to the component that fired it, if applicable.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getY]\()
Returns the y position of the event, relative to the component that fired it, if applicable.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=ACTION|class=node}{tr:id=name}{td}h6.ACTION{td}{tr}{tr:id=des}{td}{sub-section:ACTION_des|trigger=button|text=}{sub-section}{sub-section:ACTION_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onAction event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ACTION_snc|trigger=button|text=}{sub-section}{sub-section:ACTION_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ACTION_prs|trigger=button|text=}{sub-section}{sub-section:ACTION_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ACTION_ret|trigger=button|text=}{sub-section}{sub-section:ACTION_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ACTION_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ACTION_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ACTION_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ACTION_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ACTION_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ACTION_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION) 
{
	// its an action event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DATACHANGE|class=node}{tr:id=name}{td}h6.DATACHANGE{td}{tr}{tr:id=des}{td}{sub-section:DATACHANGE_des|trigger=button|text=}{sub-section}{sub-section:DATACHANGE_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDataChange event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DATACHANGE_snc|trigger=button|text=}{sub-section}{sub-section:DATACHANGE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DATACHANGE_prs|trigger=button|text=}{sub-section}{sub-section:DATACHANGE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DATACHANGE_ret|trigger=button|text=}{sub-section}{sub-section:DATACHANGE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DATACHANGE_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DATACHANGE_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DATACHANGE_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DATACHANGE) 
{
	// its a data change event
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DOUBLECLICK|class=node}{tr:id=name}{td}h6.DOUBLECLICK{td}{tr}{tr:id=des}{td}{sub-section:DOUBLECLICK_des|trigger=button|text=}{sub-section}{sub-section:DOUBLECLICK_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDoubleClick event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DOUBLECLICK_snc|trigger=button|text=}{sub-section}{sub-section:DOUBLECLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DOUBLECLICK_prs|trigger=button|text=}{sub-section}{sub-section:DOUBLECLICK_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DOUBLECLICK_ret|trigger=button|text=}{sub-section}{sub-section:DOUBLECLICK_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DOUBLECLICK_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DOUBLECLICK_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DOUBLECLICK_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DOUBLECLICK_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DOUBLECLICK_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DOUBLECLICK_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DOUBLECLICK) 
{
	// its a double click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FOCUSGAINED|class=node}{tr:id=name}{td}h6.FOCUSGAINED{td}{tr}{tr:id=des}{td}{sub-section:FOCUSGAINED_des|trigger=button|text=}{sub-section}{sub-section:FOCUSGAINED_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onFocusGained or the forms onElementFocusGained event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FOCUSGAINED_snc|trigger=button|text=}{sub-section}{sub-section:FOCUSGAINED_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSGAINED_prs|trigger=button|text=}{sub-section}{sub-section:FOCUSGAINED_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FOCUSGAINED_ret|trigger=button|text=}{sub-section}{sub-section:FOCUSGAINED_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FOCUSGAINED_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FOCUSGAINED_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FOCUSGAINED_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSGAINED) 
{
	// its a focus gained event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FOCUSLOST|class=node}{tr:id=name}{td}h6.FOCUSLOST{td}{tr}{tr:id=des}{td}{sub-section:FOCUSLOST_des|trigger=button|text=}{sub-section}{sub-section:FOCUSLOST_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onFocusLost or the forms onElementFocusLost event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FOCUSLOST_snc|trigger=button|text=}{sub-section}{sub-section:FOCUSLOST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSLOST_prs|trigger=button|text=}{sub-section}{sub-section:FOCUSLOST_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FOCUSLOST_ret|trigger=button|text=}{sub-section}{sub-section:FOCUSLOST_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FOCUSLOST_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOST_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FOCUSLOST_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FOCUSLOST_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOST_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSLOST) 
{
	// its a focus lost event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FORM|class=node}{tr:id=name}{td}h6.FORM{td}{tr}{tr:id=des}{td}{sub-section:FORM_des|trigger=button|text=}{sub-section}{sub-section:FORM_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to a form event (like onShow) or command (like onDeleteRecord){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FORM_snc|trigger=button|text=}{sub-section}{sub-section:FORM_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FORM_prs|trigger=button|text=}{sub-section}{sub-section:FORM_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FORM_ret|trigger=button|text=}{sub-section}{sub-section:FORM_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FORM_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FORM_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FORM_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FORM_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FORM_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FORM_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FORM) 
{
	// its a form event or command
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_ALT|class=node}{tr:id=name}{td}h6.MODIFIER_ALT{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_ALT_des|trigger=button|text=}{sub-section}{sub-section:MODIFIER_ALT_des|trigger=none|class=sIndent}Constant for the ALT modifier that can be returned by JSDNDEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_ALT_snc|trigger=button|text=}{sub-section}{sub-section:MODIFIER_ALT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_ALT_prs|trigger=button|text=}{sub-section}{sub-section:MODIFIER_ALT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_ALT_ret|trigger=button|text=}{sub-section}{sub-section:MODIFIER_ALT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIER_ALT_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIER_ALT_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_ALT_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALT_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSDNDEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_CTRL|class=node}{tr:id=name}{td}h6.MODIFIER_CTRL{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_CTRL_des|trigger=button|text=}{sub-section}{sub-section:MODIFIER_CTRL_des|trigger=none|class=sIndent}Constant for the CTRL modifier that can be returned by JSDNDEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_CTRL_snc|trigger=button|text=}{sub-section}{sub-section:MODIFIER_CTRL_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_CTRL_prs|trigger=button|text=}{sub-section}{sub-section:MODIFIER_CTRL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_CTRL_ret|trigger=button|text=}{sub-section}{sub-section:MODIFIER_CTRL_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIER_CTRL_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIER_CTRL_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_CTRL_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRL_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSDNDEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_META|class=node}{tr:id=name}{td}h6.MODIFIER_ALTMETA{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_ALTMETA_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_ALTMETA_des|trigger=none|class=sIndent}Constant for the ALTMETA modifier that can be returned by JSDNDEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_ALTMETA_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_ALTMETA_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_ALTMETA_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_ALTMETA_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_ALTMETA_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_ALTMETA_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIER_ALTMETA_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALTMETA_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIER_ALTMETA_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALTMETA_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_ALTMETA_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALTMETA_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSDNDEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_CTRLSHIFT|class=node}{tr:id=name}{td}h6.MODIFIER_CTRLSHIFT{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_CTRLSHIFT_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_CTRLSHIFT_des|trigger=none|class=sIndent}Constant for the CTRLSHIFT modifier that can be returned by JSDNDEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_CTRLSHIFT_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_CTRLSHIFT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_CTRLSHIFT_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_CTRLSHIFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_CTRLSHIFT_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_CTRLSHIFT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIER_CTRLSHIFT_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRLSHIFT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIER_CTRLSHIFT_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRLSHIFT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_CTRLSHIFT_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRLSHIFT_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSDNDEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_METANONE|class=node}{tr:id=name}{td}h6.MODIFIER_METANONE{td}{tr}{tr:id=des}{td}{sub-section:MODIFIERNONE_META_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_METANONE_des|trigger=none|class=sIndent}Constant for returned by JSEvent.getType() if the META modifier that can be returned by JSDNDEvent.getModifiers();event is not used in a known event or command.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIERNONE_META_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_METANONE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_METANONE_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_METANONE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_METANONE_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_METANONE_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIERNONE_META_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERNONE_META_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIERNONE_META_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERNONE_META_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_METANONE_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_METANONE_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiersgetType() &== JSDNDEventJSEvent.MODIFIER_SHIFTNONE) 
{
	//do shift action type is not set.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_SHIFTONDRAG|class=node}{tr:id=name}{td}h6.MODIFIER_SHIFTONDRAG{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_SHIFTONDRAG_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIERONDRAG_SHIFT_des|trigger=none|class=sIndent}Constant for the SHIFT modifier returned by JSDNDEvent.getType() in a method that canis attached beto returnedan byonDrag JSDNDEventevent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIERONDRAG_SHIFT_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIERONDRAG_SHIFT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_SHIFTONDRAG_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIERONDRAG_SHIFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIERONDRAG_SHIFT_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:MODIFIER_SHIFTONDRAG_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIERONDRAG_SHIFT_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_SHIFTONDRAG_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIER_SHIFTONDRAG_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_SHIFTONDRAG_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIERONDRAG_SHIFT_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERONDRAG_SHIFT_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSDNDEvent.ONDRAG) 
{
	//test ifits thean SHIFTondrag modifier is used.
event
	if (event.getModifiersgetElementName() & JSDNDEvent.MODIFIER_SHIFT)
{
	//do shift action== 'todragelement')
		return DRAGNDROP.COPY
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGONDRAGEND|class=node}{tr:id=name}{td}h6.ONDRAGONDRAGEND{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGONDRAGEND_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGONDRAGEND_des|trigger=none|class=sIndent}Constant returned by JSDNDEvent.getType() in a method that is attached to an onDragonDragEnd event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGONDRAGEND_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGONDRAGEND_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGONDRAGEND_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGONDRAGEND_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGONDRAGEND_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGONDRAGEND_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAG_see|text=ONDRAGEND_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ONDRAGONDRAGEND_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGONDRAGEND_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGONDRAGEND_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGONDRAGEND_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGONDRAGEND_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSDNDEvent.ONDRAGONDRAGEND) 
{
	// its an on drag ondragend event.
	if (event.getElementName() == 'todragelement')
		return DRAGNDROP.COPY// return true if the drop has been completed successfully
	return event.isDropSuccess(); 
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGENDONDRAGOVER|class=node}{tr:id=name}{td}h6.ONDRAGENDONDRAGOVER{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGENDONDRAGOVER_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGENDONDRAGOVER_des|trigger=none|class=sIndent}Constant returned by JSDNDEvent.getType() in a method that is attached to an onDragEndonDragOver event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGENDONDRAGOVER_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGENDONDRAGOVER_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGENDONDRAGOVER_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGENDONDRAGOVER_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGENDONDRAGOVER_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGENDONDRAGOVER_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGENDONDRAGOVER_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGENDONDRAGOVER_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGENDONDRAGOVER_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGENDONDRAGOVER_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGENDONDRAGOVER_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGENDONDRAGOVER_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSDNDEvent.ONDRAGENDONDRAGOVER) 
{
	// its an on drag endover event.
	// return true if theit dropover hasthe beenright completedelement.
successfully
	return event.isDropSuccessgetElementName() == 'candroponelement';

}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGOVERONDROP|class=node}{tr:id=name}{td}h6.ONDRAGOVERONDROP{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGOVERONDROP_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGOVERONDROP_des|trigger=none|class=sIndent}Constant returned by JSDNDEvent.getType() in a method that is attached to an onDragOveronDrop event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGOVERONDROP_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGOVERONDROP_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGOVERONDROP_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGOVERONDROP_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGOVERONDROP_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDRAGOVERONDROP_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGOVERONDROP_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVERONDROP_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGOVERONDROP_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVERONDROP_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGOVERONDROP_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVERONDROP_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSDNDEvent.ONDRAGOVERONDROP) 
{
	// its ana on drag over event. drop event.
	var element = elements[event.getElementName()];
	// returndo true if it over the right element.drop on element
	return event.getElementName() == 'candroponelement'true;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDROPRIGHTCLICK|class=node}{tr:id=name}{td}h6.ONDROPRIGHTCLICK{td}{tr}{tr:id=des}{td}{sub-section:ONDROPRIGHTCLICK_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDROPRIGHTCLICK_des|trigger=none|class=sIndent}Constant returned by JSDNDEventJSEvent.getType() in a method that is attached to an onDroponRightClick event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDROPRIGHTCLICK_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDROPRIGHTCLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDROPRIGHTCLICK_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDROPRIGHTCLICK_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDROPRIGHTCLICK_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:ONDROPRIGHTCLICK_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDROPRIGHTCLICK_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDROPRIGHTCLICK_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDROPRIGHTCLICK_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDROPRIGHTCLICK_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDROPRIGHTCLICK_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:ONDROPRIGHTCLICK_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSDNDEvent.ONDROP) 
{
	// its a on drop event.
	var element = elements[event.getElementName()];() == JSEvent.RIGHTCLICK) 
{
	// doits dropa onright element
	return true;click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=data|class=node}{tr:id=name}{td}h6.data{td}{tr}{tr:id=des}{td}{sub-section:data_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:data_des|trigger=none|class=sIndent}A data object that specific events can set, a user can set data back to the system for events that supports this.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:data_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:data_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:data_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:data_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:data_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:data_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:data_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:data_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:data_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:data_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:data_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:data_sam|trigger=none}{code:language=javascript}
// A client design method that handles ondrag
if (event.getType() == JSEvent.ONDRAG)
{
     // the data is the selected elements array
     var elements = event.data;
     // only start a client design drag when there is 1 element
     if (elements.length == 1)
     {
     	return true;
     }
}

// code for a data drag method
event.data = "drag me!";
return DRAGNDROP.COPY;

// code for a data drop method
var data = event.data;
elemements[event.getElementName()].setText(data);
return true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=dataMimeType|class=node}{tr:id=name}{td}h6.dataMimeType{td}{tr}{tr:id=des}{td}{sub-section:dataMimeType_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:dataMimeType_des|trigger=none|class=sIndent}The event data mime type.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:dataMimeType_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:dataMimeType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:dataMimeType_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:dataMimeType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:dataMimeType_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:dataMimeType_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:dataMimeType_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:dataMimeType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:dataMimeType_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:dataMimeType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:dataMimeType_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:dataMimeType_sam|trigger=none}{code:language=javascript}
// only accept drag if data is a servoy record 
function onDragOver(event)
{
	if(event.dataMimeType.indexOf("application/x-servoy-record-object") == 0) return true;
	else return false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getDragResult|class=node}{tr:id=name}{td}h6.getDragResult{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getDragResult{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getDragResult_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getDragResult_des|trigger=none|class=sIndent}Returns the result of the drag action.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getDragResult_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getDragResult_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getDragResult_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getDragResult_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getDragResult_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getDragResult_ret|trigger=none|class=sIndent}[Number] -- a DRAGNDROP constant, representing the result of the drag action{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getDragResult_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getDragResult_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getDragResult_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getDragResult_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getDragResult_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getDragResult_sam|trigger=none}{code:language=javascript}
function onDragEnd(event)
{
	var dragResult = event.getDragResult();
	if(dragResult == DRAGNDROP.NONE)
	{
		// the drag was canceled
	}
	else if(dragResult == DRAGNDROP.COPY)
	{
		// the drag ended with a copy action
	}
	else if(dragResult == DRAGNDROP.MOVE)
	{
		// the drag ended with a move action
	}
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getElementName|class=node}{tr:id=name}{td}h6.getElementName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getElementName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getElementName_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getElementName_des|trigger=none|class=sIndent}returns the name of the element, can be null if the form was the source of the event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getElementName_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getElementName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getElementName_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getElementName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getElementName_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getElementName_ret|trigger=none|class=sIndent}[String] -- a String representing the element name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getElementName_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getElementName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getElementName_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getElementName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getElementName_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getElementName_sam|trigger=none}{code:language=javascript}
if (event.getElementName() == 'myElement')
{
    elements[event.getElementName()].bgcolor = '#ff0000';
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getFormName|class=node}{tr:id=name}{td}h6.getFormName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getFormName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getFormName_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getFormName_des|trigger=none|class=sIndent}returns the name of the form the element was placed on.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getFormName_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getFormName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getFormName_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getFormName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getFormName_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getFormName_ret|trigger=none|class=sIndent}[String] -- a String representing the form name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getFormName_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getFormName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getFormName_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getFormName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getFormName_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getFormName_sam|trigger=none}{code:language=javascript}
forms[event.getFormName()].myFormMethod();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getModifiers|class=node}{tr:id=name}{td}h6.getModifiers{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getModifiers{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getModifiers_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getModifiers_des|trigger=none|class=sIndent}Returns the modifiers of the event, see JSDNDEvent.MODIFIER\_XXXX for the modifiers that can be returned.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getModifiers_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getModifiers_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getModifiers_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getModifiers_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getModifiers_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getModifiers_ret|trigger=none|class=sIndent}[Number] -- an int which holds the modifiers as a bitset.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getModifiers_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getModifiers_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getModifiers_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getModifiers_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getModifiers_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getModifiers_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSDNDEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getRecord|class=node}{tr:id=name}{td}h6.getRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRecord]{span}{span:id=iets|style=float: left; font-weight: bold;}getRecord{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getRecord_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getRecord_des|trigger=none|class=sIndent}Returns the record of the event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getRecord_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getRecord_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getRecord_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getRecord_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getRecord_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getRecord_ret|trigger=none|class=sIndent}[JSRecord] -- Record of the event{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getRecord_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getRecord_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getRecord_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getRecord_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getRecord_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getRecord_sam|trigger=none}{code:language=javascript}
event.Record();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getSource|class=node}{tr:id=name}{td}h6.getSource{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}getSource{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getSource_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getSource_des|trigger=none|class=sIndent}returns the source component/element of the event.
If it has a name the getElementName() is the name of this component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getSource_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getSource_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getSource_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getSource_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getSource_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getSource_ret|trigger=none|class=sIndent}[Object] -- an Object representing the source of this event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getSource_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getSource_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getSource_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getSource_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getSource_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getSource_sam|trigger=none}{code:language=javascript}
// cast to runtime text field (change to anoter kind of type if you know the type)
/** @type {RuntimeTextField} */
var source = event.getSource();
var sourceDataProvider = source.getDataProviderID();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getTimestamp|class=node}{tr:id=name}{td}h6.getTimestamp{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}getTimestamp{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getTimestamp_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getTimestamp_des|trigger=none|class=sIndent}Returns the time the event occurred.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getTimestamp_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getTimestamp_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getTimestamp_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getTimestamp_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getTimestamp_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getTimestamp_ret|trigger=none|class=sIndent}[Date] -- a Date when this event happened.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getTimestamp_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getTimestamp_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getTimestamp_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getTimestamp_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getTimestamp_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getTimestamp_sam|trigger=none}{code:language=javascript}
event.getTimestamp();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getType|class=node}{tr:id=name}{td}h6.getType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getType_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getType_des|trigger=none|class=sIndent}returns the dnd event type see the JSDNDEvents constants what it can return.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getType_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getType_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getType_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getType_ret|trigger=none|class=sIndent}[String] -- a String representing the type of this event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getType_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getType_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getType_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getType_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSDNDEvent.ONDROP) 
{
	// it's a drop
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getX|class=node}{tr:id=name}{td}h6.getX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getX_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getX_des|trigger=none|class=sIndent}Returns the x position of the event, relative to the component that fired it, if applicable.
For example drag'n'drop events will set the x,y positions.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getX_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getX_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getX_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getX_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getX_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getX_ret|trigger=none|class=sIndent}[Number] -- an int representing the X position.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getX_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getX_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getX_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getX_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getX_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getX_sam|trigger=none}{code:language=javascript}
var x = event.getX();
var xPrevious = previousEvent.getX();
var movedXPixels = x -xPrevious;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getY|class=node}{tr:id=name}{td}h6.getY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getY_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:getY_des|trigger=none|class=sIndent}Returns the y position of the event, relative to the component that fired it, if applicable.
For example drag'n'drop events will set the x,y positions.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getY_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:getY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getY_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:getY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getY_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:getY_ret|trigger=none|class=sIndent}[Number] -- an int representing the Y position.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getY_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getY_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getY_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:getY_sam|trigger=none}{code:language=javascript}
var y = event.getY();
var yPrevious = previousEvent.getY();
var movedYPixels = y -yPrevious;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}