dropDataType(data_type)
Class: MediaPlayer. Method inherited from UIComponent.
Description:
Sets acceptable data types that may be dropped on this component during drag and drop operation.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
DataType.[None|All|Text|Image|...]. Use |
Returns:
Returns this component is argument is provided, otherwise returns string[] value.
Type: Array.<string> | this
Examples:
// Usage examples:
label.dropDataType(DataType.All); // Setting to accept all data types
label.dropDataType(.DataType.Text, DataType.HTML); // setting by multiple arguments
label.dropDataType([DataType.Text, DataType.HTML]); // setting by an array of values
const _types = label.dropDataType(); // getting an array of data types
