dropDataType(data_type)

Class: Tabs. 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

data_type

DataType | Array.<DataType>

DataType.[None|All|Text|Image|...]. Use All to accept all data types.

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