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>
150 <div class="long">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
164 <tr class="config-row expandable config-row-alt1 notInherited">
165 <td class="micon"><a class="exi" href="#expand"> </a></td>
168 <a id="Roo.View-cfg-el" name=".el"></a>
169 <div class="fixedFont">
170 <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>
176 <div class="short">The container element.</div>
180 <div class="long">The container element.</div>
194 <tr class="config-row expandable config-row-alt0 notInherited">
195 <td class="micon"><a class="exi" href="#expand"> </a></td>
198 <a id="Roo.View-cfg-emptyText" name=".emptyText"></a>
199 <div class="fixedFont">
200 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
206 <div class="short">The empty text to show when nothing is loaded.</div>
210 <div class="long">The empty text to show when nothing is loaded.</div>
224 <tr class="config-row expandable config-row-alt1">
225 <td class="micon"><a class="exi" href="#expand"> </a></td>
228 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
229 <div class="fixedFont">
230 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
236 <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>
240 <div class="long">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></div>
248 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
254 <tr class="config-row expandable config-row-alt0 notInherited">
255 <td class="micon"><a class="exi" href="#expand"> </a></td>
258 <a id="Roo.View-cfg-multiSelect" name=".multiSelect"></a>
259 <div class="fixedFont">
260 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
266 <div class="short">Allow multiple selection</div>
270 <div class="long">Allow multiple selection</div>
284 <tr class="config-row expandable config-row-alt1 notInherited">
285 <td class="micon"><a class="exi" href="#expand"> </a></td>
288 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
289 <div class="fixedFont">
290 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
296 <div class="short">The css class to add to selected nodes</div>
300 <div class="long">The css class to add to selected nodes</div>
314 <tr class="config-row expandable config-row-alt0 notInherited">
315 <td class="micon"><a class="exi" href="#expand"> </a></td>
318 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
319 <div class="fixedFont">
320 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
326 <div class="short">Allow single selection</div>
330 <div class="long">Allow single selection</div>
344 <tr class="config-row expandable config-row-alt1 notInherited">
345 <td class="micon"><a class="exi" href="#expand"> </a></td>
348 <a id="Roo.View-cfg-store" name=".store"></a>
349 <div class="fixedFont">
350 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
356 <div class="short">Data store to load data from.</div>
360 <div class="long">Data store to load data from.</div>
374 <tr class="config-row expandable config-row-alt0 notInherited">
375 <td class="micon"><a class="exi" href="#expand"> </a></td>
378 <a id="Roo.View-cfg-text" name=".text"></a>
379 <div class="fixedFont">
380 <b class="itemname">text</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
386 <div class="short">to display on mask (default Loading)</div>
390 <div class="long">to display on mask (default Loading)</div>
404 <tr class="config-row expandable config-row-alt1 notInherited">
405 <td class="micon"><a class="exi" href="#expand"> </a></td>
408 <a id="Roo.View-cfg-tickable" name=".tickable"></a>
409 <div class="fixedFont">
410 <b class="itemname">tickable</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
416 <div class="short">- selecting</div>
420 <div class="long">- selecting</div>
434 <tr class="config-row expandable config-row-alt0 notInherited">
435 <td class="micon"><a class="exi" href="#expand"> </a></td>
438 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
439 <div class="fixedFont">
440 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
446 <div class="short">- selecting</div>
450 <div class="long">- selecting</div>
464 <tr class="config-row expandable config-row-alt1 notInherited">
465 <td class="micon"><a class="exi" href="#expand"> </a></td>
468 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
469 <div class="fixedFont">
470 <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>
476 <div class="short">The template used by this View</div>
480 <div class="long">The template used by this View</div>
504 <!-- ============================== public properties ==================== -->
508 <a id="Roo.View-props"></a>
514 <table cellspacing="0" class="member-table">
515 <caption class="Empty">Public Properties - Has None</caption>
521 <!-- ============================== methods summary / details ======================== -->
524 <a id="Roo.View-methods"></a>
525 <!-- constructor?? -->
532 <!-- then dynamics first -->
539 <table cellspacing="0" class="member-table">
540 <caption>Public Methods</caption>
542 <th class="sig-header" colspan="2">Method</th>
543 <th class="msource-header">Defined By</th>
553 <tr class="method-row config-row-alt0 expandable notInherited">
554 <td class="micon"><a class="exi" href="#expand"> </a></td>
558 <a id="Roo-method-View" name=".View"></a>
559 <div class="fixedFont">
560 <span class="attributes">new <B>Roo.</B></span><b class="itemname">View</b>
562 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
570 <div class="short">Create a new Roo.View</div>
577 Create a new Roo.View
580 <dl class="detailList">
581 <dt class="heading">Parameters:</dt>
584 <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>
587 <dd>The config object</dd>
611 <tr class="method-row config-row-alt1 expandable">
612 <td class="micon"><a class="exi" href="#expand"> </a></td>
616 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
617 <div class="fixedFont">
618 <span class="attributes"></span><b class="itemname">addEvents</b>
620 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
627 <div class="short">Used to define events on this Observable</div>
633 Used to define events on this Observable
640 <dl class="detailList">
641 <dt class="heading">Parameters:</dt>
644 <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>
647 <dd>The object with the events defined</dd>
667 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
673 <tr class="method-row config-row-alt0 expandable">
674 <td class="micon"><a class="exi" href="#expand"> </a></td>
678 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
679 <div class="fixedFont">
680 <span class="attributes"></span><b class="itemname">addListener</b>
682 (<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>)
689 <div class="short">Appends an event handler to this component</div>
695 Appends an event handler to this component
702 <dl class="detailList">
703 <dt class="heading">Parameters:</dt>
706 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
709 <dd>The type of event to listen for</dd>
712 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
715 <dd>The method the event invokes</dd>
718 <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>
721 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
724 <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>
727 <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>
747 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
753 <tr class="method-row config-row-alt1 expandable notInherited">
754 <td class="micon"><a class="exi" href="#expand"> </a></td>
758 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
759 <div class="fixedFont">
760 <span class="attributes"></span><b class="itemname">clearSelections</b>
762 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
769 <div class="short">Clear all selections</div>
782 <dl class="detailList">
783 <dt class="heading">Parameters:</dt>
786 <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>
789 <dd>(optional) true to skip firing of the selectionchange event</dd>
815 <tr class="method-row config-row-alt0 expandable notInherited">
816 <td class="micon"><a class="exi" href="#expand"> </a></td>
820 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
821 <div class="fixedFont">
822 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
824 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
830 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
839 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
845 Returns the template node the passed child belongs to or null if it doesn't belong to one.
852 <dl class="detailList">
853 <dt class="heading">Parameters:</dt>
856 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
867 <dl class="detailList">
868 <dt class="heading">Returns:</dt>
870 <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>
892 <tr class="method-row config-row-alt1 expandable">
893 <td class="micon"><a class="exi" href="#expand"> </a></td>
897 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
898 <div class="fixedFont">
899 <span class="attributes"></span><b class="itemname">fireEvent</b>
901 (<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>)
907 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
916 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
922 Fires the specified event with the passed parameters (minus the event name).
929 <dl class="detailList">
930 <dt class="heading">Parameters:</dt>
933 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
939 <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>
942 <dd>Variable number of parameters are passed to handlers</dd>
950 <dl class="detailList">
951 <dt class="heading">Returns:</dt>
953 <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>
969 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
975 <tr class="method-row config-row-alt0 expandable notInherited">
976 <td class="micon"><a class="exi" href="#expand"> </a></td>
980 <a id="Roo.View-method-getEl" name=".getEl"></a>
981 <div class="fixedFont">
982 <span class="attributes"></span><b class="itemname">getEl</b>
990 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
999 <div class="short">Returns the element this view is bound to.</div>
1005 Returns the element this view is bound to.
1016 <dl class="detailList">
1017 <dt class="heading">Returns:</dt>
1019 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1033 <td class="msource">
1041 <tr class="method-row config-row-alt1 expandable notInherited">
1042 <td class="micon"><a class="exi" href="#expand"> </a></td>
1046 <a id="Roo.View-method-getNode" name=".getNode"></a>
1047 <div class="fixedFont">
1048 <span class="attributes"></span><b class="itemname">getNode</b>
1050 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1056 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1065 <div class="short">Gets a template node.</div>
1071 Gets a template node.
1078 <dl class="detailList">
1079 <dt class="heading">Parameters:</dt>
1082 <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>
1085 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1093 <dl class="detailList">
1094 <dt class="heading">Returns:</dt>
1096 <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>
1110 <td class="msource">
1118 <tr class="method-row config-row-alt0 expandable notInherited">
1119 <td class="micon"><a class="exi" href="#expand"> </a></td>
1123 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1124 <div class="fixedFont">
1125 <span class="attributes"></span><b class="itemname">getNodes</b>
1127 (<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>)
1133 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1142 <div class="short">Gets a range template nodes.</div>
1148 Gets a range template nodes.
1155 <dl class="detailList">
1156 <dt class="heading">Parameters:</dt>
1159 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1165 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1176 <dl class="detailList">
1177 <dt class="heading">Returns:</dt>
1179 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1193 <td class="msource">
1201 <tr class="method-row config-row-alt1 expandable notInherited">
1202 <td class="micon"><a class="exi" href="#expand"> </a></td>
1206 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1207 <div class="fixedFont">
1208 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1216 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1225 <div class="short">Get the indexes of the selected nodes.</div>
1231 Get the indexes of the selected nodes.
1242 <dl class="detailList">
1243 <dt class="heading">Returns:</dt>
1245 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1259 <td class="msource">
1267 <tr class="method-row config-row-alt0 expandable notInherited">
1268 <td class="micon"><a class="exi" href="#expand"> </a></td>
1272 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1273 <div class="fixedFont">
1274 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1282 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1291 <div class="short">Get the currently selected nodes.</div>
1297 Get the currently selected nodes.
1308 <dl class="detailList">
1309 <dt class="heading">Returns:</dt>
1311 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1325 <td class="msource">
1333 <tr class="method-row config-row-alt1 expandable notInherited">
1334 <td class="micon"><a class="exi" href="#expand"> </a></td>
1338 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1339 <div class="fixedFont">
1340 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1348 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1357 <div class="short">Get the number of selected nodes.</div>
1363 Get the number of selected nodes.
1374 <dl class="detailList">
1375 <dt class="heading">Returns:</dt>
1377 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1391 <td class="msource">
1399 <tr class="method-row config-row-alt0 expandable">
1400 <td class="micon"><a class="exi" href="#expand"> </a></td>
1404 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1405 <div class="fixedFont">
1406 <span class="attributes"></span><b class="itemname">hasListener</b>
1408 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1414 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1423 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1429 Checks to see if this object has any listeners for a specified event
1436 <dl class="detailList">
1437 <dt class="heading">Parameters:</dt>
1440 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1443 <dd>The name of the event to check for</dd>
1451 <dl class="detailList">
1452 <dt class="heading">Returns:</dt>
1454 <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>
1468 <td class="msource">
1470 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1476 <tr class="method-row config-row-alt1 expandable notInherited">
1477 <td class="micon"><a class="exi" href="#expand"> </a></td>
1481 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1482 <div class="fixedFont">
1483 <span class="attributes"></span><b class="itemname">indexOf</b>
1485 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1491 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1500 <div class="short">Finds the index of the passed node</div>
1506 Finds the index of the passed node
1513 <dl class="detailList">
1514 <dt class="heading">Parameters:</dt>
1517 <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>
1520 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1528 <dl class="detailList">
1529 <dt class="heading">Returns:</dt>
1531 <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>
1545 <td class="msource">
1553 <tr class="method-row config-row-alt0 expandable notInherited">
1554 <td class="micon"><a class="exi" href="#expand"> </a></td>
1558 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1559 <div class="fixedFont">
1560 <span class="attributes"></span><b class="itemname">isSelected</b>
1562 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1568 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1577 <div class="short">Returns true if the passed node is selected</div>
1583 Returns true if the passed node is selected
1590 <dl class="detailList">
1591 <dt class="heading">Parameters:</dt>
1594 <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>
1597 <dd>The node or node index</dd>
1605 <dl class="detailList">
1606 <dt class="heading">Returns:</dt>
1608 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1622 <td class="msource">
1630 <tr class="method-row config-row-alt1 expandable">
1631 <td class="micon"><a class="exi" href="#expand"> </a></td>
1635 <a id="Roo.util.Observable-method-on" name=".on"></a>
1636 <div class="fixedFont">
1637 <span class="attributes"></span><b class="itemname">on</b>
1639 (<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>)
1646 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1652 Appends an event handler to this element (shorthand for addListener)
1659 <dl class="detailList">
1660 <dt class="heading">Parameters:</dt>
1663 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1666 <dd>The type of event to listen for</dd>
1669 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1672 <dd>The method the event invokes</dd>
1675 <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>
1678 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1681 <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>
1702 <td class="msource">
1704 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1710 <tr class="method-row config-row-alt0 expandable notInherited">
1711 <td class="micon"><a class="exi" href="#expand"> </a></td>
1715 <a id="Roo.View-method-onBeforeLoad" name=".onBeforeLoad"></a>
1716 <div class="fixedFont">
1717 <span class="attributes"></span><b class="itemname">onBeforeLoad</b>
1726 <div class="short">onbeforeLoad - masks the loading area.</div>
1732 onbeforeLoad - masks the loading area.
1753 <td class="msource">
1761 <tr class="method-row config-row-alt1 expandable notInherited">
1762 <td class="micon"><a class="exi" href="#expand"> </a></td>
1766 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1767 <div class="fixedFont">
1768 <span class="attributes"></span><b class="itemname">prepareData</b>
1770 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1777 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1783 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
1790 <dl class="detailList">
1791 <dt class="heading">Parameters:</dt>
1794 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1797 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1815 <td class="msource">
1823 <tr class="method-row config-row-alt0 expandable">
1824 <td class="micon"><a class="exi" href="#expand"> </a></td>
1828 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1829 <div class="fixedFont">
1830 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1839 <div class="short">Removes all listeners for this object</div>
1845 Removes all listeners for this object
1866 <td class="msource">
1868 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1874 <tr class="method-row config-row-alt1 expandable notInherited">
1875 <td class="micon"><a class="exi" href="#expand"> </a></td>
1879 <a id="Roo.View-method-refresh" name=".refresh"></a>
1880 <div class="fixedFont">
1881 <span class="attributes"></span><b class="itemname">refresh</b>
1890 <div class="short">Refreshes the view.</div>
1896 Refreshes the view. - called by datachanged on the store. - do not call directly.
1917 <td class="msource">
1925 <tr class="method-row config-row-alt0 expandable notInherited">
1926 <td class="micon"><a class="exi" href="#expand"> </a></td>
1930 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
1931 <div class="fixedFont">
1932 <span class="attributes"></span><b class="itemname">refreshNode</b>
1934 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1941 <div class="short">Refresh an individual node.</div>
1947 Refresh an individual node.
1954 <dl class="detailList">
1955 <dt class="heading">Parameters:</dt>
1958 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1979 <td class="msource">
1987 <tr class="method-row config-row-alt1 expandable">
1988 <td class="micon"><a class="exi" href="#expand"> </a></td>
1992 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1993 <div class="fixedFont">
1994 <span class="attributes"></span><b class="itemname">removeListener</b>
1996 (<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>)
2003 <div class="short">Removes a listener</div>
2016 <dl class="detailList">
2017 <dt class="heading">Parameters:</dt>
2020 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2023 <dd>The type of event to listen for</dd>
2026 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2029 <dd>The handler to remove</dd>
2032 <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>
2035 <dd>(optional) The scope (this object) for the handler</dd>
2053 <td class="msource">
2055 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2061 <tr class="method-row config-row-alt0 expandable notInherited">
2062 <td class="micon"><a class="exi" href="#expand"> </a></td>
2066 <a id="Roo.View-method-select" name=".select"></a>
2067 <div class="fixedFont">
2068 <span class="attributes"></span><b class="itemname">select</b>
2070 (<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>)
2077 <div class="short">Selects nodes.</div>
2090 <dl class="detailList">
2091 <dt class="heading">Parameters:</dt>
2094 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2097 <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>
2100 <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>
2103 <dd>(optional) true to keep existing selections</dd>
2106 <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>
2109 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2127 <td class="msource">
2135 <tr class="method-row config-row-alt1 expandable notInherited">
2136 <td class="micon"><a class="exi" href="#expand"> </a></td>
2140 <a id="Roo.View-method-setStore" name=".setStore"></a>
2141 <div class="fixedFont">
2142 <span class="attributes"></span><b class="itemname">setStore</b>
2144 (Store <B><i>store</i></B>)
2151 <div class="short">Changes the data store this view uses and refresh the view.</div>
2157 Changes the data store this view uses and refresh the view.
2164 <dl class="detailList">
2165 <dt class="heading">Parameters:</dt>
2168 <span class="fixedFont">Store</span> <b>store</b>
2189 <td class="msource">
2197 <tr class="method-row config-row-alt0 expandable">
2198 <td class="micon"><a class="exi" href="#expand"> </a></td>
2202 <a id="Roo.util.Observable-method-un" name=".un"></a>
2203 <div class="fixedFont">
2204 <span class="attributes"></span><b class="itemname">un</b>
2206 (<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>)
2213 <div class="short">Removes a listener (shorthand for removeListener)</div>
2219 Removes a listener (shorthand for removeListener)
2226 <dl class="detailList">
2227 <dt class="heading">Parameters:</dt>
2230 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2233 <dd>The type of event to listen for</dd>
2236 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2239 <dd>The handler to remove</dd>
2242 <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>
2245 <dd>(optional) The scope (this object) for the handler</dd>
2263 <td class="msource">
2265 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2271 <tr class="method-row config-row-alt1 expandable notInherited">
2272 <td class="micon"><a class="exi" href="#expand"> </a></td>
2276 <a id="Roo.View-method-unselect" name=".unselect"></a>
2277 <div class="fixedFont">
2278 <span class="attributes"></span><b class="itemname">unselect</b>
2280 (<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>)
2287 <div class="short">Unselects nodes.</div>
2300 <dl class="detailList">
2301 <dt class="heading">Parameters:</dt>
2304 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2307 <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>
2310 <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>
2313 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2316 <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>
2319 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2337 <td class="msource">
2348 <!-- ============================== events summary / details ======================== -->
2351 <a id="Roo.View-events"></a>
2360 <table cellspacing="0" class="member-table">
2361 <caption>Events</caption>
2364 <th class="sig-header" colspan="2">Event</th>
2365 <th class="msource-header">Defined By</th>
2374 <tr class="method-row expandable config-row-alt0 notInherited">
2375 <td class="micon"><a class="exi" href="#expand"> </a></td>
2378 <a id="Roo.View-event-*beforeclick"></a>
2380 <div class="fixedFont">
2381 <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>)
2387 <div class="short">Fires before a click is processed.
2393 Fires before a click is processed. Returns false to cancel the default action.
2399 <dl class="detailList">
2400 <dt class="heading">Parameters:</dt>
2403 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2409 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2412 <dd>The index of the target node</dd>
2415 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2418 <dd>The target node</dd>
2421 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2424 <dd>The raw event object</dd>
2442 <td class="msource">
2447 <tr class="method-row expandable config-row-alt1 notInherited">
2448 <td class="micon"><a class="exi" href="#expand"> </a></td>
2451 <a id="Roo.View-event-*beforeselect"></a>
2453 <div class="fixedFont">
2454 <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>)
2460 <div class="short">Fires before a selection is made.
2466 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2472 <dl class="detailList">
2473 <dt class="heading">Parameters:</dt>
2476 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2482 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2485 <dd>The node to be selected</dd>
2488 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2491 <dd>Array of currently selected nodes</dd>
2509 <td class="msource">
2514 <tr class="method-row expandable config-row-alt0 notInherited">
2515 <td class="micon"><a class="exi" href="#expand"> </a></td>
2518 <a id="Roo.View-event-*click"></a>
2520 <div class="fixedFont">
2521 <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>)
2527 <div class="short">Fires when a template node is clicked.
2533 Fires when a template node is clicked.
2539 <dl class="detailList">
2540 <dt class="heading">Parameters:</dt>
2543 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2549 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2552 <dd>The index of the target node</dd>
2555 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2558 <dd>The target node</dd>
2561 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2564 <dd>The raw event object</dd>
2582 <td class="msource">
2587 <tr class="method-row expandable config-row-alt1 notInherited">
2588 <td class="micon"><a class="exi" href="#expand"> </a></td>
2591 <a id="Roo.View-event-*contextmenu"></a>
2593 <div class="fixedFont">
2594 <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>)
2600 <div class="short">Fires when a template node is right clicked.
2606 Fires when a template node is right clicked.
2612 <dl class="detailList">
2613 <dt class="heading">Parameters:</dt>
2616 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2622 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2625 <dd>The index of the target node</dd>
2628 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2631 <dd>The target node</dd>
2634 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2637 <dd>The raw event object</dd>
2655 <td class="msource">
2660 <tr class="method-row expandable config-row-alt0 notInherited">
2661 <td class="micon"><a class="exi" href="#expand"> </a></td>
2664 <a id="Roo.View-event-*dblclick"></a>
2666 <div class="fixedFont">
2667 <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>)
2673 <div class="short">Fires when a template node is double clicked.
2679 Fires when a template node is double clicked.
2685 <dl class="detailList">
2686 <dt class="heading">Parameters:</dt>
2689 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2695 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2698 <dd>The index of the target node</dd>
2701 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2704 <dd>The target node</dd>
2707 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2710 <dd>The raw event object</dd>
2728 <td class="msource">
2733 <tr class="method-row expandable config-row-alt1 notInherited">
2734 <td class="micon"><a class="exi" href="#expand"> </a></td>
2737 <a id="Roo.View-event-*preparedata"></a>
2739 <div class="fixedFont">
2740 <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>)
2746 <div class="short">Fires on every row to render, to allow you to change the data.
2752 Fires on every row to render, to allow you to change the data.
2758 <dl class="detailList">
2759 <dt class="heading">Parameters:</dt>
2762 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2768 <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>
2771 <dd>to be rendered (change this)</dd>
2789 <td class="msource">
2794 <tr class="method-row expandable config-row-alt0 notInherited">
2795 <td class="micon"><a class="exi" href="#expand"> </a></td>
2798 <a id="Roo.View-event-*selectionchange"></a>
2800 <div class="fixedFont">
2801 <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>)
2807 <div class="short">Fires when the selected nodes change.
2813 Fires when the selected nodes change.
2819 <dl class="detailList">
2820 <dt class="heading">Parameters:</dt>
2823 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2829 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2832 <dd>Array of the selected nodes</dd>
2850 <td class="msource">
2862 <!-- ============================== footer ================================= -->
2863 <div class="fineprint" style="clear:both">
2865 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Feb 12 2015 14:00:46 GMT+0800 (HKT)
2867 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>