+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-
- <head>
- <meta http-equiv="content-type" content="text/html; charset=undefined" />
- <meta name="generator" content="JsDoc Toolkit" />
-
-
- <title>JsDoc Reference - Roo.DDView</title>
-
-
- <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
- <link rel="stylesheet" type="text/css" href="../default.css" />
-
-
- <script type="text/javascript" src="../page.js">
-
- </script>
-
-
- </head>
-
- <body onload="RooDocsPage.onload();">
-
-
-<div class="body-wrap">
-
- <!-- ============================== links to methods. ================================= -->
-
- <div class="top-tools">
- <!--
- <a class="inner-link" href="#Roo.DDView-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
- <a class="inner-link" href="#Roo.DDView-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
- <a class="inner-link" href="#Roo.DDView-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
- <a class="inner-link" href="#Roo.DDView-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
- <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
- -->
- </div>
-
-
-<!-- ============================== inheritance Block. ================================= -->
-
-<!-- ============================== class title / details ============================ -->
-
-
- <h1 class="classTitle">
-
- Class Roo.DDView
- </h1>
-
- <table cellspacing="0" class="class-summary-table">
-
- <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
-
- <tr><td class="label">Defined In:</td><td class="hd-info">
-
- <a href="./src/Roo_DDView.js.html">Roo/DDView.js</a>.
-
- </td></tr>
- <tr><td class="label">Class:</td><td class="hd-info">DDView</td></tr>
-
-
-
-
- </table>
-
-
-<!-- ============================== class summary ========================== -->
- <div class="description">
- A DnD enabled version of Roo.View.
- </div>
-
-
-<!-- ============================== Class comment block... ========================== -->
-
-<div class="comments">
- <b>Class Comments / Notes</B> =>
- <u onclick="parent.CommentDialog.showCommentId = 'Roo.DDView';">[Add Your comment/notes about this class]</u>
- <br/>
- <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
- src="/blog.php/GtkDjsComments/Roo.DDView.html"></iframe>
-</div>
-
-
-
-<!-- ============================== config options ========================== -->
-
-
-
-
- <div class="hr"></div>
- <a id="Roo.DDView-configs"></a>
-
-
-
-
-
- <table cellspacing="0" class="member-table">
- <caption>Config Options (Usually are also Properties)</caption>
-
-
- <tr>
- <th class="sig-header" colspan="2">Options</th>
-
- <th class="msource-header">Defined By</th>
- </tr>
-
-
-
-
-
- <tr class="config-row expandable config-row-alt0 notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
- <td class="sig">
-
- <a id="Roo.DDView-cfg-allowCopy" name=".allowCopy"></a>
- <div class="fixedFont">
- <b class="itemname">allowCopy</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
-
-
- </div>
-
- <div class="mdesc">
- <div class="short">Causes ctrl/drag operations to copy nodes rather than move.</div>
- </div>
-
- <div class="mdesc">
- <div class="long">
- Causes ctrl/drag operations to copy nodes rather than move.
-
- </div>
- </div>
-
-
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="config-row expandable config-row-alt1 notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
- <td class="sig">
-
- <a id="Roo.DDView-cfg-copy" name=".copy"></a>
- <div class="fixedFont">
- <b class="itemname">copy</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
-
-
- </div>
-
- <div class="mdesc">
- <div class="short">Causes drag operations to copy nodes rather than move.</div>
- </div>
-
- <div class="mdesc">
- <div class="long">
- Causes drag operations to copy nodes rather than move.
-
- </div>
- </div>
-
-
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="config-row expandable config-row-alt0 notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
- <td class="sig">
-
- <a id="Roo.DDView-cfg-dragGroup" name=".dragGroup"></a>
- <div class="fixedFont">
- <b class="itemname">dragGroup</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Array
-
-
- </div>
-
- <div class="mdesc">
- <div class="short">The ddgroup name(s) for the View's DragZone.</div>
- </div>
-
- <div class="mdesc">
- <div class="long">
- The ddgroup name(s) for the View's DragZone.
-
- </div>
- </div>
-
-
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="config-row expandable config-row-alt1 notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
- <td class="sig">
-
- <a id="Roo.DDView-cfg-dropGroup" name=".dropGroup"></a>
- <div class="fixedFont">
- <b class="itemname">dropGroup</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Array
-
-
- </div>
-
- <div class="mdesc">
- <div class="short">The ddgroup name(s) for the View's DropZone.</div>
- </div>
-
- <div class="mdesc">
- <div class="long">
- The ddgroup name(s) for the View's DropZone.
-
- </div>
- </div>
-
-
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- </table>
-
-
-
-
-
-
-
-
-
- <!-- ============================== public properties ==================== -->
-
-
-
- <a id="Roo.DDView-props"></a>
-
-
-
-
-
- <table cellspacing="0" class="member-table">
- <caption class="Empty">Public Properties - Has None</caption>
- </table>
-
-
-
-
- <!-- ============================== methods summary / details ======================== -->
-
-
- <a id="Roo.DDView-methods"></a>
- <!-- constructor?? -->
-
- <!-- static's first
-
-
- -->
-
- <!-- then dynamics first -->
-
-
-
-
-
-
- <table cellspacing="0" class="member-table">
- <caption>Public Methods</caption>
- <tr>
- <th class="sig-header" colspan="2">Method</th>
- <th class="msource-header">Defined By</th>
-
- </tr>
-
-
-
-
-
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo-method-DDView" name=".DDView"></a>
- <div class="fixedFont">
- <span class="attributes">new <B>Roo.</B></span><b class="itemname">DDView</b>
-
- (Element/String <B><i>container</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>tpl</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
-
-
-
- </div>
- <div class="mdesc">
-
-
- <div class="short">Create a new Roo.DDView</div>
-
-
- <div class="long">
-
-
-
- Create a new Roo.DDView
-
-
- <dl class="detailList">
- <dt class="heading">Parameters:</dt>
-
- <dt>
- <span class="fixedFont">Element/String</span> <b>container</b>
-
- </dt>
- <dd>The Element in which to create the View.</dd>
-
- <dt>
- <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>tpl</b>
-
- </dt>
- <dd>The template string used to create the markup for each element of the View</dd>
-
- <dt>
- <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
-
- </dt>
- <dd>The configuration properties. These include all the config options of<br/>{<b>link</b> Roo.View} plus some specific to this class.<br><br/><p><br/>Drag/drop is implemented by adding {<b>link</b> Roo.data.Record}s to the target DDView. If copying is<br/>not being performed, the original {<b>link</b> Roo.data.Record} is removed from the source DDView.<br><br/><p><br/>The following extra CSS rules are needed to provide insertion point highlighting:<pre><code><br/>.x-view-drag-insert-above {<br/> border-top:1px dotted #3366cc;<br/>}<br/>.x-view-drag-insert-below {<br/> border-bottom:1px dotted #3366cc;<br/>}<br/></code></pre></dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt1 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-getContextMenu" name=".getContextMenu"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">getContextMenu</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Return the context menu for this DDView.</div>
-
-
-
- <div class="long">
-
- Return the context menu for this DDView.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-getDragData" name=".getDragData"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">getDragData</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Create the drag data which consists of an object which has the property "ddel" as<br/> the drag proxy element.</div>
-
-
-
- <div class="long">
-
- Create the drag data which consists of an object which has the property "ddel" as<br/> the drag proxy element.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt1 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-getDropPoint" name=".getDropPoint"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">getDropPoint</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Decide whether to drop above or below a View node.</div>
-
-
-
- <div class="long">
-
- Decide whether to drop above or below a View node.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-getName" name=".getName"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">getName</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Allows this class to be an Roo.form.Field so it can be found using {<b>link</b> Roo.form.BasicForm<b>findField</b>}.</div>
-
-
-
- <div class="long">
-
- Allows this class to be an Roo.form.Field so it can be found using {<b>link</b> Roo.form.BasicForm<b>findField</b>}.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt1 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-getTargetFromEvent" name=".getTargetFromEvent"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">getTargetFromEvent</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Part of the Roo.dd.DropZone interface.</div>
-
-
-
- <div class="long">
-
- Part of the Roo.dd.DropZone interface. If no target node is found, the<br/> whole Element becomes the target, and this causes the drop gesture to append.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-getValue" name=".getValue"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">getValue</b>
-
- ()
-
-
- :
-
-
- <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
-
-
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short"></div>
-
-
-
- <div class="long">
-
-
-
-
-
-
-
-
-
-
-
-
- <dl class="detailList">
- <dt class="heading">Returns:</dt>
-
- <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> a parenthesised list of the ids of the Records in the View.</dd>
-
- </dl>
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt1 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-onDblClick" name=".onDblClick"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">onDblClick</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Double click fires the event, but also, if this is draggable, and there is only one other<br/> related DropZone, it transfers the selected node.</div>
-
-
-
- <div class="long">
-
- Double click fires the event, but also, if this is draggable, and there is only one other<br/> related DropZone, it transfers the selected node.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-remove" name=".remove"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">remove</b>
-
- (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Number <B><i>selectedIndices</i></B>)
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Remove {<b>link</b> Roo.data.Record}s at the specified indices.</div>
-
-
-
- <div class="long">
-
- Remove {<b>link</b> Roo.data.Record}s at the specified indices.
-
-
-
-
-
-
- <dl class="detailList">
- <dt class="heading">Parameters:</dt>
-
- <dt>
- <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Number</span> <b>selectedIndices</b>
-
- </dt>
- <dd>The index (or Array of indices) of Records to remove.</dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt1 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-setDeletable" name=".setDeletable"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">setDeletable</b>
-
- (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>imageUrl</i></B>)
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Utility method.</div>
-
-
-
- <div class="long">
-
- Utility method. Add a delete option to the DDView's context menu.
-
-
-
-
-
-
- <dl class="detailList">
- <dt class="heading">Parameters:</dt>
-
- <dt>
- <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>imageUrl</b>
-
- </dt>
- <dd>The URL of the "delete" icon image.</dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-setDraggable" name=".setDraggable"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">setDraggable</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Specify to which ddGroup items in this DDView may be dragged.</div>
-
-
-
- <div class="long">
-
- Specify to which ddGroup items in this DDView may be dragged.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt1 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-setDroppable" name=".setDroppable"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">setDroppable</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Specify from which ddGroup this DDView accepts drops.</div>
-
-
-
- <div class="long">
-
- Specify from which ddGroup this DDView accepts drops.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- <tr class="method-row config-row-alt0 expandable notInherited">
- <td class="micon"><a class="exi" href="#expand"> </a></td>
-
-
- <td class="sig">
- <a id="Roo.DDView-method-setValue" name=".setValue"></a>
- <div class="fixedFont">
- <span class="attributes"></span><b class="itemname">setValue</b>
-
- ()
-
-
-
- </div>
- <div class="mdesc">
-
- <div class="short">Loads the View from a JSON string representing the Records to put into the Store.</div>
-
-
-
- <div class="long">
-
- Loads the View from a JSON string representing the Records to put into the Store.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- </div>
-
- </td>
- <td class="msource">
-
- Roo.DDView
-
- </td>
- </tr>
-
-
- </table>
-
-
- <!-- ============================== events summary / details ======================== -->
-
-
- <a id="Roo.DDView-events"></a>
-
-
-
-
-
- <table cellspacing="0" class="member-table">
- <caption class="Empty">Events - Has None</caption>
- </table>
-
-
-
-
-
-
-
-
-
-<!-- ============================== footer ================================= -->
- <div class="fineprint" style="clear:both">
-
- Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Jul 13 2018 14:10:53 GMT+0800 (HKT)
- Based on
- <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>
- </div>
- </body>
-</html>