dragDataType(data_type)
Class: MediaPlayer. Method inherited from UIComponent.
Description:
Sets or gets the types of data that should be transfered during drag operation. The data itself can be set using dragData(...) method.
More than one type can be specified by setting multiple arguments or passing an array of values.
Parameters:
Returns:
Type: Array.<string> | this
Examples:
// Usage examples:
label.dragDataType(DataType.Text, DataType.HTML); // setting by multiple arguments
label.dragDataType([DataType.Text, DataType.HTML]); // setting by an array of values
const _types = label.dragDataType(); // getting an array of data types
