Sha256: 5c1459d7b6059026d1c3841155b6367467e48584d9050df494b54c410a4c6bcf

Contents?: true

Size: 1013 Bytes

Versions: 2

Compression:

Stored size: 1013 Bytes

Contents

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

require('drag/drag') ;


// 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.
  //
  //  dataType:
  //    The proposed dataType to return.  This will always be one of the
  //    data types declared in dragDataTypes.
  //
  //  drag:
  //    The Drag instance managing this drag.
  //
  dragDataForType: function(dataType, drag) { return null; }
  
};


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sproutcore-0.9.0 frameworks/sproutcore/drag/drag_data_source.js
sproutcore-0.9.1 frameworks/sproutcore/drag/drag_data_source.js