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.JsonView</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.JsonView-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.JsonView-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.JsonView-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.JsonView-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 src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.JsonView
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_JsonView.js.html">Roo/JsonView.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">JsonView</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Shortcut class to create a JSON + {<b>link</b> Roo.UpdateManager} template view. Usage:<br/><pre><code><br/>var view = new Roo.JsonView({<br/> container: "my-element",<br/> tpl: '<div id="{id}">{foo} - {bar}</div>', // auto create template<br/> multiSelect: true, <br/> jsonRoot: "data" <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/>// direct load of JSON data<br/>view.load("foobar.php");<br/><br/>// Example from my blog list<br/>var tpl = new Roo.Template(<br/> '<div class="entry">' +<br/> '<a class="entry-title" href="{link}">{title}</a>' +<br/> "<h4>{date} by {author} | {comments} Comments</h4>{description}" +<br/> "</div><hr />"<br/>);<br/><br/>var moreView = new Roo.JsonView({<br/> container : "entry-list", <br/> template : tpl,<br/> jsonRoot: "posts"<br/>});<br/>moreView.on("beforerender", this.sortEntries, this);<br/>moreView.load({<br/> url: "/blog/get-posts.php",<br/> params: "allposts=true",<br/> text: "Loading Blog Entries..."<br/>});<br/></code></pre><br/><br/>Note: old code is supported with arguments : (container, template, config)
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.JsonView';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.JsonView.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.JsonView-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.View-cfg-dataName" name=".dataName"></a>
133 <div class="fixedFont">
134 <b class="itemname">dataName</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
140 <div class="short">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
144 <div class="long">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
152 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
158 <tr class="config-row expandable config-row-alt1">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.View-cfg-el" name=".el"></a>
163 <div class="fixedFont">
164 <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>
170 <div class="short">The container element.</div>
174 <div class="long">The container element.</div>
182 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
188 <tr class="config-row expandable config-row-alt0">
189 <td class="micon"><a class="exi" href="#expand"> </a></td>
192 <a id="Roo.View-cfg-emptyText" name=".emptyText"></a>
193 <div class="fixedFont">
194 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
200 <div class="short">The empty text to show when nothing is loaded.</div>
204 <div class="long">The empty text to show when nothing is loaded.</div>
212 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
218 <tr class="config-row expandable config-row-alt1">
219 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
223 <div class="fixedFont">
224 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
230 <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>
234 <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>
242 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
248 <tr class="config-row expandable config-row-alt0">
249 <td class="micon"><a class="exi" href="#expand"> </a></td>
252 <a id="Roo.View-cfg-multiSelect" name=".multiSelect"></a>
253 <div class="fixedFont">
254 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
260 <div class="short">Allow multiple selection</div>
264 <div class="long">Allow multiple selection</div>
272 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
278 <tr class="config-row expandable config-row-alt1">
279 <td class="micon"><a class="exi" href="#expand"> </a></td>
282 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
283 <div class="fixedFont">
284 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
290 <div class="short">The css class to add to selected nodes</div>
294 <div class="long">The css class to add to selected nodes</div>
302 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
308 <tr class="config-row expandable config-row-alt0">
309 <td class="micon"><a class="exi" href="#expand"> </a></td>
312 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
313 <div class="fixedFont">
314 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
320 <div class="short">Allow single selection</div>
324 <div class="long">Allow single selection</div>
332 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
338 <tr class="config-row expandable config-row-alt1">
339 <td class="micon"><a class="exi" href="#expand"> </a></td>
342 <a id="Roo.View-cfg-store" name=".store"></a>
343 <div class="fixedFont">
344 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
350 <div class="short">Data store to load data from.</div>
354 <div class="long">Data store to load data from.</div>
362 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
368 <tr class="config-row expandable config-row-alt0">
369 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo.View-cfg-text" name=".text"></a>
373 <div class="fixedFont">
374 <b class="itemname">text</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
380 <div class="short">to display on mask (default Loading)</div>
384 <div class="long">to display on mask (default Loading)</div>
392 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
398 <tr class="config-row expandable config-row-alt1">
399 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo.View-cfg-tickable" name=".tickable"></a>
403 <div class="fixedFont">
404 <b class="itemname">tickable</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
410 <div class="short">- selecting</div>
414 <div class="long">- selecting</div>
422 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
428 <tr class="config-row expandable config-row-alt0">
429 <td class="micon"><a class="exi" href="#expand"> </a></td>
432 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
433 <div class="fixedFont">
434 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
440 <div class="short">- selecting</div>
444 <div class="long">- selecting</div>
452 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
458 <tr class="config-row expandable config-row-alt1">
459 <td class="micon"><a class="exi" href="#expand"> </a></td>
462 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
463 <div class="fixedFont">
464 <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>
470 <div class="short">The template used by this View</div>
474 <div class="long">The template used by this View</div>
482 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
498 <!-- ============================== public properties ==================== -->
502 <a id="Roo.JsonView-props"></a>
508 <table cellspacing="0" class="member-table">
509 <caption class="Empty">Public Properties - Has None</caption>
515 <!-- ============================== methods summary / details ======================== -->
518 <a id="Roo.JsonView-methods"></a>
519 <!-- constructor?? -->
526 <!-- then dynamics first -->
533 <table cellspacing="0" class="member-table">
534 <caption>Public Methods</caption>
536 <th class="sig-header" colspan="2">Method</th>
537 <th class="msource-header">Defined By</th>
547 <tr class="method-row config-row-alt0 expandable notInherited">
548 <td class="micon"><a class="exi" href="#expand"> </a></td>
552 <a id="Roo-method-JsonView" name=".JsonView"></a>
553 <div class="fixedFont">
554 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
556 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
564 <div class="short">Create a new Roo.JsonView</div>
571 Create a new Roo.JsonView
574 <dl class="detailList">
575 <dt class="heading">Parameters:</dt>
578 <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>
581 <dd>The config object</dd>
605 <tr class="method-row config-row-alt1 expandable">
606 <td class="micon"><a class="exi" href="#expand"> </a></td>
610 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
611 <div class="fixedFont">
612 <span class="attributes"></span><b class="itemname">addEvents</b>
614 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
621 <div class="short">Used to define events on this Observable</div>
627 Used to define events on this Observable
634 <dl class="detailList">
635 <dt class="heading">Parameters:</dt>
638 <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>
641 <dd>The object with the events defined</dd>
661 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
667 <tr class="method-row config-row-alt0 expandable">
668 <td class="micon"><a class="exi" href="#expand"> </a></td>
672 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
673 <div class="fixedFont">
674 <span class="attributes"></span><b class="itemname">addListener</b>
676 (<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>)
683 <div class="short">Appends an event handler to this component</div>
689 Appends an event handler to this component
696 <dl class="detailList">
697 <dt class="heading">Parameters:</dt>
700 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
703 <dd>The type of event to listen for</dd>
706 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
709 <dd>The method the event invokes</dd>
712 <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>
715 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</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>options</b>
721 <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>
741 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
747 <tr class="method-row config-row-alt1 expandable notInherited">
748 <td class="micon"><a class="exi" href="#expand"> </a></td>
752 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
753 <div class="fixedFont">
754 <span class="attributes"></span><b class="itemname">clearFilter</b>
763 <div class="short">Clears the current filter.</div>
769 Clears the current filter.
798 <tr class="method-row config-row-alt0 expandable">
799 <td class="micon"><a class="exi" href="#expand"> </a></td>
803 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
804 <div class="fixedFont">
805 <span class="attributes"></span><b class="itemname">clearSelections</b>
807 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
814 <div class="short">Clear all selections</div>
827 <dl class="detailList">
828 <dt class="heading">Parameters:</dt>
831 <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>
834 <dd>(optional) true to skip firing of the selectionchange event</dd>
854 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
860 <tr class="method-row config-row-alt1 expandable notInherited">
861 <td class="micon"><a class="exi" href="#expand"> </a></td>
865 <a id="Roo.JsonView-method-filter" name=".filter"></a>
866 <div class="fixedFont">
867 <span class="attributes"></span><b class="itemname">filter</b>
869 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>)
876 <div class="short">Filter the data by a specific property.</div>
882 Filter the data by a specific property.
889 <dl class="detailList">
890 <dt class="heading">Parameters:</dt>
893 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
896 <dd>A property on your JSON objects</dd>
899 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
902 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
928 <tr class="method-row config-row-alt0 expandable notInherited">
929 <td class="micon"><a class="exi" href="#expand"> </a></td>
933 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
934 <div class="fixedFont">
935 <span class="attributes"></span><b class="itemname">filterBy</b>
937 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</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>)
944 <div class="short">Filter by a function.</div>
950 Filter by a function. The passed function will be called with each<br/>object in the current dataset. If the function returns true the value is kept,<br/>otherwise it is filtered.
957 <dl class="detailList">
958 <dt class="heading">Parameters:</dt>
961 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
967 <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>
970 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
996 <tr class="method-row config-row-alt1 expandable">
997 <td class="micon"><a class="exi" href="#expand"> </a></td>
1001 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
1002 <div class="fixedFont">
1003 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
1005 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
1011 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1020 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
1026 Returns the template node the passed child belongs to or null if it doesn't belong to one.
1033 <dl class="detailList">
1034 <dt class="heading">Parameters:</dt>
1037 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
1048 <dl class="detailList">
1049 <dt class="heading">Returns:</dt>
1051 <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>
1065 <td class="msource">
1067 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1073 <tr class="method-row config-row-alt0 expandable">
1074 <td class="micon"><a class="exi" href="#expand"> </a></td>
1078 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1079 <div class="fixedFont">
1080 <span class="attributes"></span><b class="itemname">fireEvent</b>
1082 (<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>)
1088 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1097 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1103 Fires the specified event with the passed parameters (minus the event name).
1110 <dl class="detailList">
1111 <dt class="heading">Parameters:</dt>
1114 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1120 <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>
1123 <dd>Variable number of parameters are passed to handlers</dd>
1131 <dl class="detailList">
1132 <dt class="heading">Returns:</dt>
1134 <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>
1148 <td class="msource">
1150 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1156 <tr class="method-row config-row-alt1 expandable notInherited">
1157 <td class="micon"><a class="exi" href="#expand"> </a></td>
1161 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
1162 <div class="fixedFont">
1163 <span class="attributes"></span><b class="itemname">getCount</b>
1171 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1180 <div class="short">Get the number of records in the current JSON dataset</div>
1186 Get the number of records in the current JSON dataset
1197 <dl class="detailList">
1198 <dt class="heading">Returns:</dt>
1200 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1214 <td class="msource">
1222 <tr class="method-row config-row-alt0 expandable">
1223 <td class="micon"><a class="exi" href="#expand"> </a></td>
1227 <a id="Roo.View-method-getEl" name=".getEl"></a>
1228 <div class="fixedFont">
1229 <span class="attributes"></span><b class="itemname">getEl</b>
1237 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1246 <div class="short">Returns the element this view is bound to.</div>
1252 Returns the element this view is bound to.
1263 <dl class="detailList">
1264 <dt class="heading">Returns:</dt>
1266 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1280 <td class="msource">
1282 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1288 <tr class="method-row config-row-alt1 expandable">
1289 <td class="micon"><a class="exi" href="#expand"> </a></td>
1293 <a id="Roo.View-method-getNode" name=".getNode"></a>
1294 <div class="fixedFont">
1295 <span class="attributes"></span><b class="itemname">getNode</b>
1297 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1303 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1312 <div class="short">Gets a template node.</div>
1318 Gets a template node.
1325 <dl class="detailList">
1326 <dt class="heading">Parameters:</dt>
1329 <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>
1332 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1340 <dl class="detailList">
1341 <dt class="heading">Returns:</dt>
1343 <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>
1357 <td class="msource">
1359 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1365 <tr class="method-row config-row-alt0 expandable notInherited">
1366 <td class="micon"><a class="exi" href="#expand"> </a></td>
1370 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1371 <div class="fixedFont">
1372 <span class="attributes"></span><b class="itemname">getNodeData</b>
1374 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1380 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1389 <div class="short">Returns the JSON object for the specified node(s)</div>
1395 Returns the JSON object for the specified node(s)
1402 <dl class="detailList">
1403 <dt class="heading">Parameters:</dt>
1406 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array</span> <b>node</b>
1409 <dd>The node or an array of nodes</dd>
1417 <dl class="detailList">
1418 <dt class="heading">Returns:</dt>
1420 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array</span> If you pass in an array, you get an array back, otherwise<br/>you get the JSON object for the node</dd>
1434 <td class="msource">
1442 <tr class="method-row config-row-alt1 expandable">
1443 <td class="micon"><a class="exi" href="#expand"> </a></td>
1447 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1448 <div class="fixedFont">
1449 <span class="attributes"></span><b class="itemname">getNodes</b>
1451 (<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>)
1457 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1466 <div class="short">Gets a range template nodes.</div>
1472 Gets a range template nodes.
1479 <dl class="detailList">
1480 <dt class="heading">Parameters:</dt>
1483 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1489 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1500 <dl class="detailList">
1501 <dt class="heading">Returns:</dt>
1503 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1517 <td class="msource">
1519 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1525 <tr class="method-row config-row-alt0 expandable">
1526 <td class="micon"><a class="exi" href="#expand"> </a></td>
1530 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1531 <div class="fixedFont">
1532 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1540 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1549 <div class="short">Get the indexes of the selected nodes.</div>
1555 Get the indexes of the selected nodes.
1566 <dl class="detailList">
1567 <dt class="heading">Returns:</dt>
1569 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1583 <td class="msource">
1585 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1591 <tr class="method-row config-row-alt1 expandable">
1592 <td class="micon"><a class="exi" href="#expand"> </a></td>
1596 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1597 <div class="fixedFont">
1598 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1606 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1615 <div class="short">Get the currently selected nodes.</div>
1621 Get the currently selected nodes.
1632 <dl class="detailList">
1633 <dt class="heading">Returns:</dt>
1635 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1649 <td class="msource">
1651 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1657 <tr class="method-row config-row-alt0 expandable">
1658 <td class="micon"><a class="exi" href="#expand"> </a></td>
1662 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1663 <div class="fixedFont">
1664 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1672 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1681 <div class="short">Get the number of selected nodes.</div>
1687 Get the number of selected nodes.
1698 <dl class="detailList">
1699 <dt class="heading">Returns:</dt>
1701 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1715 <td class="msource">
1717 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1723 <tr class="method-row config-row-alt1 expandable">
1724 <td class="micon"><a class="exi" href="#expand"> </a></td>
1728 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1729 <div class="fixedFont">
1730 <span class="attributes"></span><b class="itemname">hasListener</b>
1732 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1738 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1747 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1753 Checks to see if this object has any listeners for a specified event
1760 <dl class="detailList">
1761 <dt class="heading">Parameters:</dt>
1764 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1767 <dd>The name of the event to check for</dd>
1775 <dl class="detailList">
1776 <dt class="heading">Returns:</dt>
1778 <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>
1792 <td class="msource">
1794 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1800 <tr class="method-row config-row-alt0 expandable">
1801 <td class="micon"><a class="exi" href="#expand"> </a></td>
1805 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1806 <div class="fixedFont">
1807 <span class="attributes"></span><b class="itemname">indexOf</b>
1809 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1815 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1824 <div class="short">Finds the index of the passed node</div>
1830 Finds the index of the passed node
1837 <dl class="detailList">
1838 <dt class="heading">Parameters:</dt>
1841 <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>
1844 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1852 <dl class="detailList">
1853 <dt class="heading">Returns:</dt>
1855 <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>
1869 <td class="msource">
1871 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1877 <tr class="method-row config-row-alt1 expandable">
1878 <td class="micon"><a class="exi" href="#expand"> </a></td>
1882 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1883 <div class="fixedFont">
1884 <span class="attributes"></span><b class="itemname">isSelected</b>
1886 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1892 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1901 <div class="short">Returns true if the passed node is selected</div>
1907 Returns true if the passed node is selected
1914 <dl class="detailList">
1915 <dt class="heading">Parameters:</dt>
1918 <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>
1921 <dd>The node or node index</dd>
1929 <dl class="detailList">
1930 <dt class="heading">Returns:</dt>
1932 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1946 <td class="msource">
1948 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1954 <tr class="method-row config-row-alt0 expandable notInherited">
1955 <td class="micon"><a class="exi" href="#expand"> </a></td>
1959 <a id="Roo.JsonView-method-load" name=".load"></a>
1960 <div class="fixedFont">
1961 <span class="attributes"></span><b class="itemname">load</b>
1963 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/String/Function <B><i>url</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object <B><i>params</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>callback</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>discardUrl</i></B>)
1970 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1976 Performs an async HTTP request, and loads the JSON from the response. If <i>params</i> are specified it uses POST, otherwise it uses GET.
1983 <dl class="detailList">
1984 <dt class="heading">Parameters:</dt>
1987 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/String/Function</span> <b>url</b>
1990 <dd>The URL for this request, or a function to call to get the URL, or a config object containing any of the following options:<br/> <pre><code><br/> view.load({<br/> url: "your-url.php",<br/> params: {param1: "foo", param2: "bar"}, // or a URL encoded string<br/> callback: yourFunction,<br/> scope: yourObject, //(optional scope)<br/> discardUrl: false,<br/> nocache: false,<br/> text: "Loading...",<br/> timeout: 30,<br/> scripts: false<br/> });<br/> </code></pre><br/>The only required property is <i>url</i>. The optional properties <i>nocache</i>, <i>text</i> and <i>scripts</i><br/>are respectively shorthand for <i>disableCaching</i>, <i>indicatorText</i>, and <i>loadScripts</i> and are used to set their associated property on this UpdateManager instance.</dd>
1993 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1996 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1999 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
2002 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
2005 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>discardUrl</b>
2008 <dd>(optional) By default when you execute an update the defaultUrl is changed to the last used URL. If true, it will not store the URL.</dd>
2026 <td class="msource">
2034 <tr class="method-row config-row-alt1 expandable">
2035 <td class="micon"><a class="exi" href="#expand"> </a></td>
2039 <a id="Roo.util.Observable-method-on" name=".on"></a>
2040 <div class="fixedFont">
2041 <span class="attributes"></span><b class="itemname">on</b>
2043 (<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>)
2050 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2056 Appends an event handler to this element (shorthand for addListener)
2063 <dl class="detailList">
2064 <dt class="heading">Parameters:</dt>
2067 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2070 <dd>The type of event to listen for</dd>
2073 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2076 <dd>The method the event invokes</dd>
2079 <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>
2082 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2085 <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>
2106 <td class="msource">
2108 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2114 <tr class="method-row config-row-alt0 expandable">
2115 <td class="micon"><a class="exi" href="#expand"> </a></td>
2119 <a id="Roo.View-method-onBeforeLoad" name=".onBeforeLoad"></a>
2120 <div class="fixedFont">
2121 <span class="attributes"></span><b class="itemname">onBeforeLoad</b>
2130 <div class="short">onbeforeLoad - masks the loading area.</div>
2136 onbeforeLoad - masks the loading area.
2157 <td class="msource">
2159 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2165 <tr class="method-row config-row-alt1 expandable">
2166 <td class="micon"><a class="exi" href="#expand"> </a></td>
2170 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
2171 <div class="fixedFont">
2172 <span class="attributes"></span><b class="itemname">prepareData</b>
2174 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
2181 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
2187 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
2194 <dl class="detailList">
2195 <dt class="heading">Parameters:</dt>
2198 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
2201 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
2219 <td class="msource">
2221 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2227 <tr class="method-row config-row-alt0 expandable">
2228 <td class="micon"><a class="exi" href="#expand"> </a></td>
2232 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2233 <div class="fixedFont">
2234 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2243 <div class="short">Removes all listeners for this object</div>
2249 Removes all listeners for this object
2270 <td class="msource">
2272 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2278 <tr class="method-row config-row-alt1 expandable notInherited">
2279 <td class="micon"><a class="exi" href="#expand"> </a></td>
2283 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2284 <div class="fixedFont">
2285 <span class="attributes"></span><b class="itemname">refresh</b>
2294 <div class="short">Refreshes the view.</div>
2321 <td class="msource">
2329 <tr class="method-row config-row-alt0 expandable">
2330 <td class="micon"><a class="exi" href="#expand"> </a></td>
2334 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2335 <div class="fixedFont">
2336 <span class="attributes"></span><b class="itemname">refreshNode</b>
2338 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2345 <div class="short">Refresh an individual node.</div>
2351 Refresh an individual node.
2358 <dl class="detailList">
2359 <dt class="heading">Parameters:</dt>
2362 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2383 <td class="msource">
2385 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2391 <tr class="method-row config-row-alt1 expandable">
2392 <td class="micon"><a class="exi" href="#expand"> </a></td>
2396 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2397 <div class="fixedFont">
2398 <span class="attributes"></span><b class="itemname">removeListener</b>
2400 (<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>)
2407 <div class="short">Removes a listener</div>
2420 <dl class="detailList">
2421 <dt class="heading">Parameters:</dt>
2424 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2427 <dd>The type of event to listen for</dd>
2430 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2433 <dd>The handler to remove</dd>
2436 <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>
2439 <dd>(optional) The scope (this object) for the handler</dd>
2457 <td class="msource">
2459 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2465 <tr class="method-row config-row-alt0 expandable">
2466 <td class="micon"><a class="exi" href="#expand"> </a></td>
2470 <a id="Roo.View-method-select" name=".select"></a>
2471 <div class="fixedFont">
2472 <span class="attributes"></span><b class="itemname">select</b>
2474 (<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>)
2481 <div class="short">Selects nodes.</div>
2494 <dl class="detailList">
2495 <dt class="heading">Parameters:</dt>
2498 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2501 <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>
2504 <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>
2507 <dd>(optional) true to keep existing selections</dd>
2510 <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>
2513 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2531 <td class="msource">
2533 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2539 <tr class="method-row config-row-alt1 expandable">
2540 <td class="micon"><a class="exi" href="#expand"> </a></td>
2544 <a id="Roo.View-method-setStore" name=".setStore"></a>
2545 <div class="fixedFont">
2546 <span class="attributes"></span><b class="itemname">setStore</b>
2548 (Store <B><i>store</i></B>)
2555 <div class="short">Changes the data store this view uses and refresh the view.</div>
2561 Changes the data store this view uses and refresh the view.
2568 <dl class="detailList">
2569 <dt class="heading">Parameters:</dt>
2572 <span class="fixedFont">Store</span> <b>store</b>
2593 <td class="msource">
2595 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2601 <tr class="method-row config-row-alt0 expandable notInherited">
2602 <td class="micon"><a class="exi" href="#expand"> </a></td>
2606 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2607 <div class="fixedFont">
2608 <span class="attributes"></span><b class="itemname">sort</b>
2610 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>direction</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>sortType</i></B>)
2617 <div class="short">Sorts the data for this view and refreshes it.</div>
2623 Sorts the data for this view and refreshes it.
2630 <dl class="detailList">
2631 <dt class="heading">Parameters:</dt>
2634 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2637 <dd>A property on your JSON objects to sort on</dd>
2640 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2643 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2646 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2649 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2667 <td class="msource">
2675 <tr class="method-row config-row-alt1 expandable">
2676 <td class="micon"><a class="exi" href="#expand"> </a></td>
2680 <a id="Roo.util.Observable-method-un" name=".un"></a>
2681 <div class="fixedFont">
2682 <span class="attributes"></span><b class="itemname">un</b>
2684 (<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>)
2691 <div class="short">Removes a listener (shorthand for removeListener)</div>
2697 Removes a listener (shorthand for removeListener)
2704 <dl class="detailList">
2705 <dt class="heading">Parameters:</dt>
2708 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2711 <dd>The type of event to listen for</dd>
2714 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2717 <dd>The handler to remove</dd>
2720 <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>
2723 <dd>(optional) The scope (this object) for the handler</dd>
2741 <td class="msource">
2743 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2749 <tr class="method-row config-row-alt0 expandable">
2750 <td class="micon"><a class="exi" href="#expand"> </a></td>
2754 <a id="Roo.View-method-unselect" name=".unselect"></a>
2755 <div class="fixedFont">
2756 <span class="attributes"></span><b class="itemname">unselect</b>
2758 (<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>)
2765 <div class="short">Unselects nodes.</div>
2778 <dl class="detailList">
2779 <dt class="heading">Parameters:</dt>
2782 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2785 <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>
2788 <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>
2791 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2794 <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>
2797 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2815 <td class="msource">
2817 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2826 <!-- ============================== events summary / details ======================== -->
2829 <a id="Roo.JsonView-events"></a>
2838 <table cellspacing="0" class="member-table">
2839 <caption>Events</caption>
2842 <th class="sig-header" colspan="2">Event</th>
2843 <th class="msource-header">Defined By</th>
2852 <tr class="method-row expandable config-row-alt0">
2853 <td class="micon"><a class="exi" href="#expand"> </a></td>
2856 <a id="Roo.View-event-*beforeclick"></a>
2858 <div class="fixedFont">
2859 <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>)
2865 <div class="short">Fires before a click is processed.
2871 Fires before a click is processed. Returns false to cancel the default action.
2877 <dl class="detailList">
2878 <dt class="heading">Parameters:</dt>
2881 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2887 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2890 <dd>The index of the target node</dd>
2893 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2896 <dd>The target node</dd>
2899 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2902 <dd>The raw event object</dd>
2920 <td class="msource">
2921 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2925 <tr class="method-row expandable config-row-alt1 notInherited">
2926 <td class="micon"><a class="exi" href="#expand"> </a></td>
2929 <a id="Roo.JsonView-event-*beforerender"></a>
2931 <div class="fixedFont">
2932 <b class="itemname">beforerender</b> (<a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</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>)
2938 <div class="short">Fires before rendering of the downloaded JSON data.
2944 Fires before rendering of the downloaded JSON data.
2950 <dl class="detailList">
2951 <dt class="heading">Parameters:</dt>
2954 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2960 <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>
2963 <dd>The JSON data loaded</dd>
2981 <td class="msource">
2986 <tr class="method-row expandable config-row-alt0">
2987 <td class="micon"><a class="exi" href="#expand"> </a></td>
2990 <a id="Roo.View-event-*beforeselect"></a>
2992 <div class="fixedFont">
2993 <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>)
2999 <div class="short">Fires before a selection is made.
3005 Fires before a selection is made. If any handlers return false, the selection is cancelled.
3011 <dl class="detailList">
3012 <dt class="heading">Parameters:</dt>
3015 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3021 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3024 <dd>The node to be selected</dd>
3027 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3030 <dd>Array of currently selected nodes</dd>
3048 <td class="msource">
3049 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3053 <tr class="method-row expandable config-row-alt1">
3054 <td class="micon"><a class="exi" href="#expand"> </a></td>
3057 <a id="Roo.View-event-*click"></a>
3059 <div class="fixedFont">
3060 <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>)
3066 <div class="short">Fires when a template node is clicked.
3072 Fires when a template node is clicked.
3078 <dl class="detailList">
3079 <dt class="heading">Parameters:</dt>
3082 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3088 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3091 <dd>The index of the target node</dd>
3094 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3097 <dd>The target node</dd>
3100 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3103 <dd>The raw event object</dd>
3121 <td class="msource">
3122 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3126 <tr class="method-row expandable config-row-alt0">
3127 <td class="micon"><a class="exi" href="#expand"> </a></td>
3130 <a id="Roo.View-event-*contextmenu"></a>
3132 <div class="fixedFont">
3133 <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>)
3139 <div class="short">Fires when a template node is right clicked.
3145 Fires when a template node is right clicked.
3151 <dl class="detailList">
3152 <dt class="heading">Parameters:</dt>
3155 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3161 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3164 <dd>The index of the target node</dd>
3167 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3170 <dd>The target node</dd>
3173 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3176 <dd>The raw event object</dd>
3194 <td class="msource">
3195 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3199 <tr class="method-row expandable config-row-alt1">
3200 <td class="micon"><a class="exi" href="#expand"> </a></td>
3203 <a id="Roo.View-event-*dblclick"></a>
3205 <div class="fixedFont">
3206 <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>)
3212 <div class="short">Fires when a template node is double clicked.
3218 Fires when a template node is double clicked.
3224 <dl class="detailList">
3225 <dt class="heading">Parameters:</dt>
3228 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3234 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3237 <dd>The index of the target node</dd>
3240 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3243 <dd>The target node</dd>
3246 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3249 <dd>The raw event object</dd>
3267 <td class="msource">
3268 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3272 <tr class="method-row expandable config-row-alt0 notInherited">
3273 <td class="micon"><a class="exi" href="#expand"> </a></td>
3276 <a id="Roo.JsonView-event-*load"></a>
3278 <div class="fixedFont">
3279 <b class="itemname">load</b> (<a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</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>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>)
3285 <div class="short">Fires when data is loaded.
3291 Fires when data is loaded.
3297 <dl class="detailList">
3298 <dt class="heading">Parameters:</dt>
3301 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3307 <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>
3310 <dd>The JSON data loaded</dd>
3313 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
3316 <dd>The raw Connect response object</dd>
3334 <td class="msource">
3339 <tr class="method-row expandable config-row-alt1 notInherited">
3340 <td class="micon"><a class="exi" href="#expand"> </a></td>
3343 <a id="Roo.JsonView-event-*loadexception"></a>
3345 <div class="fixedFont">
3346 <b class="itemname">loadexception</b> (<a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</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>response</i></B>)
3352 <div class="short">Fires when loading fails.
3358 Fires when loading fails.
3364 <dl class="detailList">
3365 <dt class="heading">Parameters:</dt>
3368 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3374 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
3377 <dd>The raw Connect response object</dd>
3395 <td class="msource">
3400 <tr class="method-row expandable config-row-alt0">
3401 <td class="micon"><a class="exi" href="#expand"> </a></td>
3404 <a id="Roo.View-event-*preparedata"></a>
3406 <div class="fixedFont">
3407 <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>)
3413 <div class="short">Fires on every row to render, to allow you to change the data.
3419 Fires on every row to render, to allow you to change the data.
3425 <dl class="detailList">
3426 <dt class="heading">Parameters:</dt>
3429 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3435 <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>
3438 <dd>to be rendered (change this)</dd>
3456 <td class="msource">
3457 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3461 <tr class="method-row expandable config-row-alt1">
3462 <td class="micon"><a class="exi" href="#expand"> </a></td>
3465 <a id="Roo.View-event-*selectionchange"></a>
3467 <div class="fixedFont">
3468 <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>)
3474 <div class="short">Fires when the selected nodes change.
3480 Fires when the selected nodes change.
3486 <dl class="detailList">
3487 <dt class="heading">Parameters:</dt>
3490 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3496 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3499 <dd>Array of the selected nodes</dd>
3517 <td class="msource">
3518 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3529 <!-- ============================== footer ================================= -->
3530 <div class="fineprint" style="clear:both">
3532 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Feb 12 2015 14:07:05 GMT+0800 (HKT)
3534 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>