ui.DragDrop.setMimeType

Define the MIME type of the dragged object.

Syntax

setMimeType(
   mimeType STRING )
  1. mimeType defines the MIME type for the drag & drop buffer.

Usage

Objects dragged from the program to an external application need to be identified with a MIME type and the program must provide the data. The MIME type can be specified with the setMimeType() method.

The setMimeType() method is typically used in an ON DRAG_START block along with setBuffer().

By default, the source target will use the text/plain MIME type and copy the data of the selected rows into the Drag & Drop buffer.