Sha256: 6c5738b3f1d0aee43aa94d5e566a74d1117fcb6144f40202731ff81903c14eb9

Contents?: true

Size: 1.21 KB

Versions: 11

Compression:

Stored size: 1.21 KB

Contents

// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2008, Sprout Systems, Inc. and contributors.
// Portions copyright ©2008 Apple, Inc.  All rights reserved.
// ========================================================================

require('system/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 = {

  /** @property
    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 {SC.Drag} drag The Drag instance managing this drag.
    @param {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
  */
  dragDataForType: function(drag, dataType) { return null; }
  
};


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js