initial import
[roojs1] / Roo / dd / DDTarget.js
1 /*
2  * Based on:
3  * Ext JS Library 1.1.1
4  * Copyright(c) 2006-2007, Ext JS, LLC.
5  *
6  * Originally Released Under LGPL - original licence link has changed is not relivant.
7  *
8  * Fork - LGPL
9  * <script type="text/javascript">
10  */
11
12  /**
13  * @class Roo.dd.DDTarget
14  * A DragDrop implementation that does not move, but can be a drop
15  * target.  You would get the same result by simply omitting implementation
16  * for the event callbacks, but this way we reduce the processing cost of the
17  * event listener and the callbacks.
18  * @extends Roo.dd.DragDrop
19  * @constructor
20  * @param {String} id the id of the element that is a drop target
21  * @param {String} sGroup the group of related DragDrop objects
22  * @param {object} config an object containing configurable attributes
23  *                 Valid properties for DDTarget in addition to those in
24  *                 DragDrop:
25  *                    none
26  */
27 Roo.dd.DDTarget = function(id, sGroup, config) {
28     if (id) {
29         this.initTarget(id, sGroup, config);
30     }
31 };
32
33 // Roo.dd.DDTarget.prototype = new Roo.dd.DragDrop();
34 Roo.extend(Roo.dd.DDTarget, Roo.dd.DragDrop, {
35     toString: function() {
36         return ("DDTarget " + this.id);
37     }
38 });