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
- SC.DragDataSource.dragDataTypes
Class Methods
Field Detail
Array SC.DragDataSource.dragDataTypesImplement this property as an array of data types you want to support for drag operations.
- Default Value:
- []
Class Method Detail
dragDataForType
Implement this method to return the data in the format passed. Return null if the requested data type cannot be generated.
- Parameters:
- SC.Drag drag
- The Drag instance managing this drag.
- Object dataType
- 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 Thu Apr 11 2013 16:14:35 GMT+0800 (CST)
