Protocol: SC.DragDataSource

This protocol implements a dynamic data source for a drag operation. You can return a set of allowed data types and then the method will be used to actually get data in that format when requested.

Defined in: drag_data_source.js

Field Summary

Class Methods

Field Detail

SC.DragDataSource.dragDataTypes Array

Implement this property as an array of data types you want to support for drag operations.

Default value:
[]

Class Method Detail

dragDataForType(drag, dataType)

Implement this method to return the data in the format passed. Return null if the requested data type cannot be generated.

Parameters:
drag SC.Drag
The Drag instance managing this drag.
dataType Object
The proposed dataType to return. This will always be one of the data types declared in dragDataTypes.
Returns:
The data object for the specified type
Documentation generated by JsDoc Toolkit 2.4.0 on Fri Nov 28 2014 17:58:15 GMT+0100 (CET)