1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.View</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.View-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.View-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.View-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.View-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.View
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_View.js.html">Roo/View.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">View</td></tr>
72 <tr><td class="label">Subclasses:</td><td class="hd-info">
73 <a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a>
81 <tr><td class="label">Extends:</td><td class="hd-info">
82 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
90 <!-- ============================== class summary ========================== -->
91 <div class="description">
92 Create a "View" for an element based on a data model or UpdateManager and the supplied DomHelper template. <br/>This class also supports single and multi selection modes. <br><br/>Create a data model bound view:<br/> <pre><code><br/> var store = new Roo.data.Store(...);<br/><br/> var view = new Roo.View({<br/> el : "my-element",<br/> tpl : '<div id="{0}">{2} - {1}</div>', // auto create template<br/> <br/> singleSelect: true,<br/> selectedClass: "ydataview-selected",<br/> store: store<br/> });<br/><br/> // listen for node click?<br/> view.on("click", function(vw, index, node, e){<br/> alert('Node "' + node.id + '" at index: ' + index + " was clicked.");<br/> });<br/><br/> // load XML data<br/> dataModel.load("foobar.xml");<br/> </code></pre><br/> For an example of creating a JSON/UpdateManager view, see {<b>link</b> Roo.JsonView}.<br/><br><br><br/><b>Note: The root of your template must be a single node. Table/row implementations may work but are not supported due to<br/>IE"s limited insertion support with tables and Opera"s faulty event bubbling.</b><br/><br/>Note: old style constructor is still suported (container, template, config)
96 <!-- ============================== Class comment block... ========================== -->
98 <div class="comments">
99 <b>Class Comments / Notes</B> =>
100 <u onclick="parent.CommentDialog.showCommentId = 'Roo.View';">[Add Your comment/notes about this class]</u>
102 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
103 src="/blog.php/GtkDjsComments/Roo.View.html"></iframe>
108 <!-- ============================== config options ========================== -->
113 <div class="hr"></div>
114 <a id="Roo.View-configs"></a>
120 <table cellspacing="0" class="member-table">
121 <caption>Config Options (Usually are also Properties)</caption>
125 <th class="sig-header" colspan="2">Options</th>
127 <th class="msource-header">Defined By</th>
134 <tr class="config-row expandable config-row-alt0 notInherited">
135 <td class="micon"><a class="exi" href="#expand"> </a></td>
138 <a id="Roo.View-cfg-dataName" name=".dataName"></a>
139 <div class="fixedFont">
140 <b class="itemname">dataName</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
146 <div class="short">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
151 the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"
167 <tr class="config-row expandable config-row-alt1 notInherited">
168 <td class="micon"><a class="exi" href="#expand"> </a></td>
171 <a id="Roo.View-cfg-el" name=".el"></a>
172 <div class="fixedFont">
173 <b class="itemname">el</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|<a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
179 <div class="short">The container element.</div>
184 The container element.
200 <tr class="config-row expandable config-row-alt0 notInherited">
201 <td class="micon"><a class="exi" href="#expand"> </a></td>
204 <a id="Roo.View-cfg-emptyText" name=".emptyText"></a>
205 <div class="fixedFont">
206 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
212 <div class="short">The empty text to show when nothing is loaded.</div>
217 The empty text to show when nothing is loaded.
233 <tr class="config-row expandable config-row-alt1">
234 <td class="micon"><a class="exi" href="#expand"> </a></td>
237 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
238 <div class="fixedFont">
239 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
245 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
250 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
260 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
266 <tr class="config-row expandable config-row-alt0 notInherited">
267 <td class="micon"><a class="exi" href="#expand"> </a></td>
270 <a id="Roo.View-cfg-multiSelect" name=".multiSelect"></a>
271 <div class="fixedFont">
272 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
278 <div class="short">Allow multiple selection</div>
283 Allow multiple selection
299 <tr class="config-row expandable config-row-alt1 notInherited">
300 <td class="micon"><a class="exi" href="#expand"> </a></td>
303 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
304 <div class="fixedFont">
305 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
311 <div class="short">The css class to add to selected nodes</div>
316 The css class to add to selected nodes
332 <tr class="config-row expandable config-row-alt0 notInherited">
333 <td class="micon"><a class="exi" href="#expand"> </a></td>
336 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
337 <div class="fixedFont">
338 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
344 <div class="short">Allow single selection</div>
349 Allow single selection
365 <tr class="config-row expandable config-row-alt1 notInherited">
366 <td class="micon"><a class="exi" href="#expand"> </a></td>
369 <a id="Roo.View-cfg-store" name=".store"></a>
370 <div class="fixedFont">
371 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
377 <div class="short">Data store to load data from.</div>
382 Data store to load data from.
398 <tr class="config-row expandable config-row-alt0 notInherited">
399 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo.View-cfg-text" name=".text"></a>
403 <div class="fixedFont">
404 <b class="itemname">text</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
410 <div class="short">to display on mask (default Loading)</div>
415 to display on mask (default Loading)
431 <tr class="config-row expandable config-row-alt1 notInherited">
432 <td class="micon"><a class="exi" href="#expand"> </a></td>
435 <a id="Roo.View-cfg-tickable" name=".tickable"></a>
436 <div class="fixedFont">
437 <b class="itemname">tickable</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
443 <div class="short">- selecting</div>
464 <tr class="config-row expandable config-row-alt0 notInherited">
465 <td class="micon"><a class="exi" href="#expand"> </a></td>
468 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
469 <div class="fixedFont">
470 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
476 <div class="short">- selecting</div>
497 <tr class="config-row expandable config-row-alt1 notInherited">
498 <td class="micon"><a class="exi" href="#expand"> </a></td>
501 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
502 <div class="fixedFont">
503 <b class="itemname">tpl</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|<a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
509 <div class="short">The template used by this View</div>
514 The template used by this View
540 <!-- ============================== public properties ==================== -->
544 <a id="Roo.View-props"></a>
550 <table cellspacing="0" class="member-table">
551 <caption class="Empty">Public Properties - Has None</caption>
557 <!-- ============================== methods summary / details ======================== -->
560 <a id="Roo.View-methods"></a>
561 <!-- constructor?? -->
568 <!-- then dynamics first -->
575 <table cellspacing="0" class="member-table">
576 <caption>Public Methods</caption>
578 <th class="sig-header" colspan="2">Method</th>
579 <th class="msource-header">Defined By</th>
589 <tr class="method-row config-row-alt0 expandable notInherited">
590 <td class="micon"><a class="exi" href="#expand"> </a></td>
594 <a id="Roo-method-View" name=".View"></a>
595 <div class="fixedFont">
596 <span class="attributes">new <B>Roo.</B></span><b class="itemname">View</b>
598 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
606 <div class="short">Create a new Roo.View</div>
613 Create a new Roo.View
616 <dl class="detailList">
617 <dt class="heading">Parameters:</dt>
620 <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>
623 <dd>The config object</dd>
647 <tr class="method-row config-row-alt1 expandable">
648 <td class="micon"><a class="exi" href="#expand"> </a></td>
652 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
653 <div class="fixedFont">
654 <span class="attributes"></span><b class="itemname">addEvents</b>
656 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
663 <div class="short">Used to define events on this Observable</div>
669 Used to define events on this Observable
676 <dl class="detailList">
677 <dt class="heading">Parameters:</dt>
680 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
683 <dd>The object with the events defined</dd>
703 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
709 <tr class="method-row config-row-alt0 expandable">
710 <td class="micon"><a class="exi" href="#expand"> </a></td>
714 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
715 <div class="fixedFont">
716 <span class="attributes"></span><b class="itemname">addListener</b>
718 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
725 <div class="short">Appends an event handler to this component</div>
731 Appends an event handler to this component
738 <dl class="detailList">
739 <dt class="heading">Parameters:</dt>
742 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
745 <dd>The type of event to listen for</dd>
748 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
751 <dd>The method the event invokes</dd>
754 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
757 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
760 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
763 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
783 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
789 <tr class="method-row config-row-alt1 expandable notInherited">
790 <td class="micon"><a class="exi" href="#expand"> </a></td>
794 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
795 <div class="fixedFont">
796 <span class="attributes"></span><b class="itemname">clearSelections</b>
798 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
805 <div class="short">Clear all selections</div>
818 <dl class="detailList">
819 <dt class="heading">Parameters:</dt>
822 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
825 <dd>(optional) true to skip firing of the selectionchange event</dd>
851 <tr class="method-row config-row-alt0 expandable notInherited">
852 <td class="micon"><a class="exi" href="#expand"> </a></td>
856 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
857 <div class="fixedFont">
858 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
860 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
866 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
875 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
881 Returns the template node the passed child belongs to or null if it doesn't belong to one.
888 <dl class="detailList">
889 <dt class="heading">Parameters:</dt>
892 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
903 <dl class="detailList">
904 <dt class="heading">Returns:</dt>
906 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> The template node</dd>
928 <tr class="method-row config-row-alt1 expandable">
929 <td class="micon"><a class="exi" href="#expand"> </a></td>
933 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
934 <div class="fixedFont">
935 <span class="attributes"></span><b class="itemname">fireEvent</b>
937 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
943 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
952 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
958 Fires the specified event with the passed parameters (minus the event name).
965 <dl class="detailList">
966 <dt class="heading">Parameters:</dt>
969 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
975 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
978 <dd>Variable number of parameters are passed to handlers</dd>
986 <dl class="detailList">
987 <dt class="heading">Returns:</dt>
989 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
1003 <td class="msource">
1005 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1011 <tr class="method-row config-row-alt0 expandable notInherited">
1012 <td class="micon"><a class="exi" href="#expand"> </a></td>
1016 <a id="Roo.View-method-getEl" name=".getEl"></a>
1017 <div class="fixedFont">
1018 <span class="attributes"></span><b class="itemname">getEl</b>
1026 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1035 <div class="short">Returns the element this view is bound to.</div>
1041 Returns the element this view is bound to.
1052 <dl class="detailList">
1053 <dt class="heading">Returns:</dt>
1055 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1069 <td class="msource">
1077 <tr class="method-row config-row-alt1 expandable notInherited">
1078 <td class="micon"><a class="exi" href="#expand"> </a></td>
1082 <a id="Roo.View-method-getNode" name=".getNode"></a>
1083 <div class="fixedFont">
1084 <span class="attributes"></span><b class="itemname">getNode</b>
1086 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1092 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1101 <div class="short">Gets a template node.</div>
1107 Gets a template node.
1114 <dl class="detailList">
1115 <dt class="heading">Parameters:</dt>
1118 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number</span> <b>nodeInfo</b>
1121 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1129 <dl class="detailList">
1130 <dt class="heading">Returns:</dt>
1132 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> The node or null if it wasn't found</dd>
1146 <td class="msource">
1154 <tr class="method-row config-row-alt0 expandable notInherited">
1155 <td class="micon"><a class="exi" href="#expand"> </a></td>
1159 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1160 <div class="fixedFont">
1161 <span class="attributes"></span><b class="itemname">getNodes</b>
1163 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>startIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>endIndex</i></B>)
1169 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1178 <div class="short">Gets a range template nodes.</div>
1184 Gets a range template nodes.
1191 <dl class="detailList">
1192 <dt class="heading">Parameters:</dt>
1195 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1201 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1212 <dl class="detailList">
1213 <dt class="heading">Returns:</dt>
1215 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1229 <td class="msource">
1237 <tr class="method-row config-row-alt1 expandable notInherited">
1238 <td class="micon"><a class="exi" href="#expand"> </a></td>
1242 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1243 <div class="fixedFont">
1244 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1252 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1261 <div class="short">Get the indexes of the selected nodes.</div>
1267 Get the indexes of the selected nodes.
1278 <dl class="detailList">
1279 <dt class="heading">Returns:</dt>
1281 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1295 <td class="msource">
1303 <tr class="method-row config-row-alt0 expandable notInherited">
1304 <td class="micon"><a class="exi" href="#expand"> </a></td>
1308 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1309 <div class="fixedFont">
1310 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1318 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1327 <div class="short">Get the currently selected nodes.</div>
1333 Get the currently selected nodes.
1344 <dl class="detailList">
1345 <dt class="heading">Returns:</dt>
1347 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1361 <td class="msource">
1369 <tr class="method-row config-row-alt1 expandable notInherited">
1370 <td class="micon"><a class="exi" href="#expand"> </a></td>
1374 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1375 <div class="fixedFont">
1376 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1384 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1393 <div class="short">Get the number of selected nodes.</div>
1399 Get the number of selected nodes.
1410 <dl class="detailList">
1411 <dt class="heading">Returns:</dt>
1413 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1427 <td class="msource">
1435 <tr class="method-row config-row-alt0 expandable">
1436 <td class="micon"><a class="exi" href="#expand"> </a></td>
1440 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1441 <div class="fixedFont">
1442 <span class="attributes"></span><b class="itemname">hasListener</b>
1444 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1450 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1459 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1465 Checks to see if this object has any listeners for a specified event
1472 <dl class="detailList">
1473 <dt class="heading">Parameters:</dt>
1476 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1479 <dd>The name of the event to check for</dd>
1487 <dl class="detailList">
1488 <dt class="heading">Returns:</dt>
1490 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
1504 <td class="msource">
1506 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1512 <tr class="method-row config-row-alt1 expandable notInherited">
1513 <td class="micon"><a class="exi" href="#expand"> </a></td>
1517 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1518 <div class="fixedFont">
1519 <span class="attributes"></span><b class="itemname">indexOf</b>
1521 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1527 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1536 <div class="short">Finds the index of the passed node</div>
1542 Finds the index of the passed node
1549 <dl class="detailList">
1550 <dt class="heading">Parameters:</dt>
1553 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number</span> <b>nodeInfo</b>
1556 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1564 <dl class="detailList">
1565 <dt class="heading">Returns:</dt>
1567 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The index of the node or -1</dd>
1581 <td class="msource">
1589 <tr class="method-row config-row-alt0 expandable notInherited">
1590 <td class="micon"><a class="exi" href="#expand"> </a></td>
1594 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1595 <div class="fixedFont">
1596 <span class="attributes"></span><b class="itemname">isSelected</b>
1598 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1604 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1613 <div class="short">Returns true if the passed node is selected</div>
1619 Returns true if the passed node is selected
1626 <dl class="detailList">
1627 <dt class="heading">Parameters:</dt>
1630 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number</span> <b>node</b>
1633 <dd>The node or node index</dd>
1641 <dl class="detailList">
1642 <dt class="heading">Returns:</dt>
1644 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1658 <td class="msource">
1666 <tr class="method-row config-row-alt1 expandable">
1667 <td class="micon"><a class="exi" href="#expand"> </a></td>
1671 <a id="Roo.util.Observable-method-on" name=".on"></a>
1672 <div class="fixedFont">
1673 <span class="attributes"></span><b class="itemname">on</b>
1675 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1682 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1688 Appends an event handler to this element (shorthand for addListener)
1695 <dl class="detailList">
1696 <dt class="heading">Parameters:</dt>
1699 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1702 <dd>The type of event to listen for</dd>
1705 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1708 <dd>The method the event invokes</dd>
1711 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1714 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1717 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1738 <td class="msource">
1740 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1746 <tr class="method-row config-row-alt0 expandable notInherited">
1747 <td class="micon"><a class="exi" href="#expand"> </a></td>
1751 <a id="Roo.View-method-onBeforeLoad" name=".onBeforeLoad"></a>
1752 <div class="fixedFont">
1753 <span class="attributes"></span><b class="itemname">onBeforeLoad</b>
1762 <div class="short">onbeforeLoad - masks the loading area.</div>
1768 onbeforeLoad - masks the loading area.
1789 <td class="msource">
1797 <tr class="method-row config-row-alt1 expandable notInherited">
1798 <td class="micon"><a class="exi" href="#expand"> </a></td>
1802 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1803 <div class="fixedFont">
1804 <span class="attributes"></span><b class="itemname">prepareData</b>
1806 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1813 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1819 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
1826 <dl class="detailList">
1827 <dt class="heading">Parameters:</dt>
1830 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1833 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1851 <td class="msource">
1859 <tr class="method-row config-row-alt0 expandable">
1860 <td class="micon"><a class="exi" href="#expand"> </a></td>
1864 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1865 <div class="fixedFont">
1866 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1875 <div class="short">Removes all listeners for this object</div>
1881 Removes all listeners for this object
1902 <td class="msource">
1904 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1910 <tr class="method-row config-row-alt1 expandable notInherited">
1911 <td class="micon"><a class="exi" href="#expand"> </a></td>
1915 <a id="Roo.View-method-refresh" name=".refresh"></a>
1916 <div class="fixedFont">
1917 <span class="attributes"></span><b class="itemname">refresh</b>
1926 <div class="short">Refreshes the view.</div>
1932 Refreshes the view. - called by datachanged on the store. - do not call directly.
1953 <td class="msource">
1961 <tr class="method-row config-row-alt0 expandable notInherited">
1962 <td class="micon"><a class="exi" href="#expand"> </a></td>
1966 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
1967 <div class="fixedFont">
1968 <span class="attributes"></span><b class="itemname">refreshNode</b>
1970 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1977 <div class="short">Refresh an individual node.</div>
1983 Refresh an individual node.
1990 <dl class="detailList">
1991 <dt class="heading">Parameters:</dt>
1994 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2015 <td class="msource">
2023 <tr class="method-row config-row-alt1 expandable">
2024 <td class="micon"><a class="exi" href="#expand"> </a></td>
2028 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2029 <div class="fixedFont">
2030 <span class="attributes"></span><b class="itemname">removeListener</b>
2032 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2039 <div class="short">Removes a listener</div>
2052 <dl class="detailList">
2053 <dt class="heading">Parameters:</dt>
2056 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2059 <dd>The type of event to listen for</dd>
2062 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2065 <dd>The handler to remove</dd>
2068 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2071 <dd>(optional) The scope (this object) for the handler</dd>
2089 <td class="msource">
2091 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2097 <tr class="method-row config-row-alt0 expandable notInherited">
2098 <td class="micon"><a class="exi" href="#expand"> </a></td>
2102 <a id="Roo.View-method-select" name=".select"></a>
2103 <div class="fixedFont">
2104 <span class="attributes"></span><b class="itemname">select</b>
2106 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number <B><i>nodeInfo</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>keepExisting</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
2113 <div class="short">Selects nodes.</div>
2126 <dl class="detailList">
2127 <dt class="heading">Parameters:</dt>
2130 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2133 <dd>An HTMLElement template node, index of a template node, id of a template node or an array of any of those to select</dd>
2136 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>keepExisting</b>
2139 <dd>(optional) true to keep existing selections</dd>
2142 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
2145 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2163 <td class="msource">
2171 <tr class="method-row config-row-alt1 expandable notInherited">
2172 <td class="micon"><a class="exi" href="#expand"> </a></td>
2176 <a id="Roo.View-method-setStore" name=".setStore"></a>
2177 <div class="fixedFont">
2178 <span class="attributes"></span><b class="itemname">setStore</b>
2180 (Store <B><i>store</i></B>)
2187 <div class="short">Changes the data store this view uses and refresh the view.</div>
2193 Changes the data store this view uses and refresh the view.
2200 <dl class="detailList">
2201 <dt class="heading">Parameters:</dt>
2204 <span class="fixedFont">Store</span> <b>store</b>
2225 <td class="msource">
2233 <tr class="method-row config-row-alt0 expandable">
2234 <td class="micon"><a class="exi" href="#expand"> </a></td>
2238 <a id="Roo.util.Observable-method-un" name=".un"></a>
2239 <div class="fixedFont">
2240 <span class="attributes"></span><b class="itemname">un</b>
2242 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2249 <div class="short">Removes a listener (shorthand for removeListener)</div>
2255 Removes a listener (shorthand for removeListener)
2262 <dl class="detailList">
2263 <dt class="heading">Parameters:</dt>
2266 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2269 <dd>The type of event to listen for</dd>
2272 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2275 <dd>The handler to remove</dd>
2278 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2281 <dd>(optional) The scope (this object) for the handler</dd>
2299 <td class="msource">
2301 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2307 <tr class="method-row config-row-alt1 expandable notInherited">
2308 <td class="micon"><a class="exi" href="#expand"> </a></td>
2312 <a id="Roo.View-method-unselect" name=".unselect"></a>
2313 <div class="fixedFont">
2314 <span class="attributes"></span><b class="itemname">unselect</b>
2316 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number <B><i>nodeInfo</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>keepExisting</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
2323 <div class="short">Unselects nodes.</div>
2336 <dl class="detailList">
2337 <dt class="heading">Parameters:</dt>
2340 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2343 <dd>An HTMLElement template node, index of a template node, id of a template node or an array of any of those to select</dd>
2346 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>keepExisting</b>
2349 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2352 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
2355 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2373 <td class="msource">
2384 <!-- ============================== events summary / details ======================== -->
2387 <a id="Roo.View-events"></a>
2396 <table cellspacing="0" class="member-table">
2397 <caption>Events</caption>
2400 <th class="sig-header" colspan="2">Event</th>
2401 <th class="msource-header">Defined By</th>
2410 <tr class="method-row expandable config-row-alt0 notInherited">
2411 <td class="micon"><a class="exi" href="#expand"> </a></td>
2414 <a id="Roo.View-event-*beforeclick"></a>
2416 <div class="fixedFont">
2417 <b class="itemname">beforeclick</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2423 <div class="short">Fires before a click is processed.
2429 Fires before a click is processed. Returns false to cancel the default action.
2435 <dl class="detailList">
2436 <dt class="heading">Parameters:</dt>
2439 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2445 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2448 <dd>The index of the target node</dd>
2451 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2454 <dd>The target node</dd>
2457 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2460 <dd>The raw event object</dd>
2478 <td class="msource">
2483 <tr class="method-row expandable config-row-alt1 notInherited">
2484 <td class="micon"><a class="exi" href="#expand"> </a></td>
2487 <a id="Roo.View-event-*beforeselect"></a>
2489 <div class="fixedFont">
2490 <b class="itemname">beforeselect</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>selections</i></B>)
2496 <div class="short">Fires before a selection is made.
2502 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2508 <dl class="detailList">
2509 <dt class="heading">Parameters:</dt>
2512 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2518 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2521 <dd>The node to be selected</dd>
2524 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2527 <dd>Array of currently selected nodes</dd>
2545 <td class="msource">
2550 <tr class="method-row expandable config-row-alt0 notInherited">
2551 <td class="micon"><a class="exi" href="#expand"> </a></td>
2554 <a id="Roo.View-event-*click"></a>
2556 <div class="fixedFont">
2557 <b class="itemname">click</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2563 <div class="short">Fires when a template node is clicked.
2569 Fires when a template node is clicked.
2575 <dl class="detailList">
2576 <dt class="heading">Parameters:</dt>
2579 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2585 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2588 <dd>The index of the target node</dd>
2591 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2594 <dd>The target node</dd>
2597 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2600 <dd>The raw event object</dd>
2618 <td class="msource">
2623 <tr class="method-row expandable config-row-alt1 notInherited">
2624 <td class="micon"><a class="exi" href="#expand"> </a></td>
2627 <a id="Roo.View-event-*contextmenu"></a>
2629 <div class="fixedFont">
2630 <b class="itemname">contextmenu</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2636 <div class="short">Fires when a template node is right clicked.
2642 Fires when a template node is right clicked.
2648 <dl class="detailList">
2649 <dt class="heading">Parameters:</dt>
2652 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2658 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2661 <dd>The index of the target node</dd>
2664 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2667 <dd>The target node</dd>
2670 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2673 <dd>The raw event object</dd>
2691 <td class="msource">
2696 <tr class="method-row expandable config-row-alt0 notInherited">
2697 <td class="micon"><a class="exi" href="#expand"> </a></td>
2700 <a id="Roo.View-event-*dblclick"></a>
2702 <div class="fixedFont">
2703 <b class="itemname">dblclick</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2709 <div class="short">Fires when a template node is double clicked.
2715 Fires when a template node is double clicked.
2721 <dl class="detailList">
2722 <dt class="heading">Parameters:</dt>
2725 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2731 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2734 <dd>The index of the target node</dd>
2737 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2740 <dd>The target node</dd>
2743 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2746 <dd>The raw event object</dd>
2764 <td class="msource">
2769 <tr class="method-row expandable config-row-alt1 notInherited">
2770 <td class="micon"><a class="exi" href="#expand"> </a></td>
2773 <a id="Roo.View-event-*preparedata"></a>
2775 <div class="fixedFont">
2776 <b class="itemname">preparedata</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>)
2782 <div class="short">Fires on every row to render, to allow you to change the data.
2788 Fires on every row to render, to allow you to change the data.
2794 <dl class="detailList">
2795 <dt class="heading">Parameters:</dt>
2798 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2804 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>data</b>
2807 <dd>to be rendered (change this)</dd>
2825 <td class="msource">
2830 <tr class="method-row expandable config-row-alt0 notInherited">
2831 <td class="micon"><a class="exi" href="#expand"> </a></td>
2834 <a id="Roo.View-event-*selectionchange"></a>
2836 <div class="fixedFont">
2837 <b class="itemname">selectionchange</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>selections</i></B>)
2843 <div class="short">Fires when the selected nodes change.
2849 Fires when the selected nodes change.
2855 <dl class="detailList">
2856 <dt class="heading">Parameters:</dt>
2859 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2865 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2868 <dd>Array of the selected nodes</dd>
2886 <td class="msource">
2898 <!-- ============================== footer ================================= -->
2899 <div class="fineprint" style="clear:both">
2901 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Mar 14 2016 12:18:46 GMT+0800 (HKT)
2903 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>