ui.DragDrop.selectMimeType

Select the MIME type before getting the data.

Syntax

selectMimeType(
   type STRING )
  1. type defines the MIME type for dragged objects.

Usage

Call the selectMimeType() method to check that data is available in a format identified by the MIME type passed as parameter.

If this type of data is available in the buffer, the method returns TRUE and you can later get the data with getBuffer().

The selectMimeType() method is typically used in ON DRAG_ENTER, ON DRAG_OVER to deny the drag & drop operation if none of the supported MIME types is available in the buffer.