Class Index | File Index

Classes


Class DropControl

Identifies a drop, and provides control for current drop object. Instances of this class are passed as arguments to the drop events from content-studio. It allows extensions to identify the current drop, and get the drop as String data type.
Defined in: builtins.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This class is typically only instantiated by Content Studio.
Method Summary
Method Attributes Method Name and Description
 
getData(mimeType, String, mimeType)
Returns the dorpped content for the given mimeType.
 
supports(mimeType)
Checks whether current drop supports the given mimeType
Class Detail
DropControl()
This class is typically only instantiated by Content Studio.
Method Detail
getData(mimeType, String, mimeType)
Returns the dorpped content for the given mimeType. The data is returned as a string.
Parameters:
{string} mimeType
the mimeType of the dropped content
String
mimeType
Throws:
ScriptException if the mimeType is not supported or there is error reading the dropped content.
Returns:
the dropped content as string

supports(mimeType)
Checks whether current drop supports the given mimeType
Parameters:
{string} mimeType
the mime-type to be checked for the dropped content
Returns:
true if the mimeType is supported, false otherwise

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jun 29 2015 18:25:43 GMT+0200 (CEST)