The DRAGNDROP class provides constants for handling drag-and-drop operations in Servoy. Key operations include COPY, MOVE, and NONE, which allow developers to define behavior for copying, moving, or disabling drag functionality. These constants help streamline interaction handling in custom applications. Additionally, the class defines MIME types such as MIME_TYPE_SERVOY and MIME_TYPE_SERVOY_RECORD. These constants ensure proper identification of Servoy objects and records during drag-and-drop operations, enhancing integration and compatibility within the Servoy runtime environment.
if (event.dataMimeType ==DRAGNDROP.MIME_TYPE_SERVOY||event.dataMimeType ==DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {application.output("Dropping is allowed" );returntrue;} else {application.output("Dropping is not allowed" );returnfalse;}
MIME_TYPE_SERVOY_RECORD
Constant used as mime type for servoy record objects.
if (event.dataMimeType ==DRAGNDROP.MIME_TYPE_SERVOY||event.dataMimeType ==DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {application.output("Dropping is allowed" );returntrue;} else {application.output("Dropping is not allowed" );returnfalse;}