Sha256: 2dec4946b80538444ad02af95413dfc0799b60834dd81adac5c17450efa7063d

Contents?: true

Size: 1.09 KB

Versions: 22

Compression:

Stored size: 1.09 KB

Contents

// ========================================================================
// SproutCore
// copyright 2006-2008 Sprout Systems, Inc.
// ========================================================================

require('drag/drag') ;


/**
  @namespace

  This mixin can be used to implement 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.
*/
SC.DragDataSource = {

  /**
    Implement this property as an array of data types you want to support
    for drag operations.
  */
  dragDataTypes: [],

  /**
    Implement this method to return the data in the format passed.  Return
    null if the requested data type cannot be generated.
  
    @param {Object} dataType The proposed dataType to return.  This will 
      always be one of the data types declared in dragDataTypes.
    
    @param {SC.Drag} drag The Drag instance managing this drag.
    
    @returns The data object for the specified type
  
  */
  dragDataForType: function(dataType, drag) { return null; }
  
};


Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sproutcore-0.9.10 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.12 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.11 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.15 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.14 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.13 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.17 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.16 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.18 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.19 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.2 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.22 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.23 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.21 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.20 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.4 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.5 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.3 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.6 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.9 frameworks/sproutcore/drag/drag_data_source.js