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-el" name=".el"></a>
133 <div class="fixedFont">
134 <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>
140 <div class="short">The container element.</div>
144 <div class="long">The container element.</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-emptyText" name=".emptyText"></a>
163 <div class="fixedFont">
164 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
170 <div class="short">The empty text to show when nothing is loaded.</div>
174 <div class="long">The empty text to show when nothing is loaded.</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.util.Observable-cfg-listeners" name=".listeners"></a>
193 <div class="fixedFont">
194 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
200 <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>
204 <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>
212 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</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.View-cfg-multiSelect" name=".multiSelect"></a>
223 <div class="fixedFont">
224 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
230 <div class="short">Allow multiple selection</div>
234 <div class="long">Allow multiple selection</div>
242 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</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-selectedClass" name=".selectedClass"></a>
253 <div class="fixedFont">
254 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
260 <div class="short">The css class to add to selected nodes</div>
264 <div class="long">The css class to add to selected nodes</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-singleSelect" name=".singleSelect"></a>
283 <div class="fixedFont">
284 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
290 <div class="short">Allow single selection</div>
294 <div class="long">Allow single selection</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-store" name=".store"></a>
313 <div class="fixedFont">
314 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
320 <div class="short">Data store to load data from.</div>
324 <div class="long">Data store to load data from.</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-tpl" name=".tpl"></a>
343 <div class="fixedFont">
344 <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>
350 <div class="short">The template used by this View</div>
354 <div class="long">The template used by this View</div>
362 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
378 <!-- ============================== public properties ==================== -->
382 <a id="Roo.JsonView-props"></a>
388 <table cellspacing="0" class="member-table">
389 <caption class="Empty">Public Properties - Has None</caption>
395 <!-- ============================== methods summary / details ======================== -->
398 <a id="Roo.JsonView-methods"></a>
399 <!-- constructor?? -->
406 <!-- then dynamics first -->
413 <table cellspacing="0" class="member-table">
414 <caption>Public Methods</caption>
416 <th class="sig-header" colspan="2">Method</th>
417 <th class="msource-header">Defined By</th>
427 <tr class="method-row config-row-alt0 expandable notInherited">
428 <td class="micon"><a class="exi" href="#expand"> </a></td>
432 <a id="Roo-method-JsonView" name=".JsonView"></a>
433 <div class="fixedFont">
434 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
436 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
444 <div class="short">Create a new Roo.JsonView</div>
451 Create a new Roo.JsonView
454 <dl class="detailList">
455 <dt class="heading">Parameters:</dt>
458 <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>
461 <dd>The config object</dd>
485 <tr class="method-row config-row-alt1 expandable">
486 <td class="micon"><a class="exi" href="#expand"> </a></td>
490 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
491 <div class="fixedFont">
492 <span class="attributes"></span><b class="itemname">addEvents</b>
494 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
501 <div class="short">Used to define events on this Observable</div>
507 Used to define events on this Observable
514 <dl class="detailList">
515 <dt class="heading">Parameters:</dt>
518 <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>
521 <dd>The object with the events defined</dd>
541 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
547 <tr class="method-row config-row-alt0 expandable">
548 <td class="micon"><a class="exi" href="#expand"> </a></td>
552 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
553 <div class="fixedFont">
554 <span class="attributes"></span><b class="itemname">addListener</b>
556 (<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>)
563 <div class="short">Appends an event handler to this component</div>
569 Appends an event handler to this component
576 <dl class="detailList">
577 <dt class="heading">Parameters:</dt>
580 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
583 <dd>The type of event to listen for</dd>
586 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
589 <dd>The method the event invokes</dd>
592 <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>
595 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
598 <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>
601 <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>
621 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
627 <tr class="method-row config-row-alt1 expandable notInherited">
628 <td class="micon"><a class="exi" href="#expand"> </a></td>
632 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
633 <div class="fixedFont">
634 <span class="attributes"></span><b class="itemname">clearFilter</b>
643 <div class="short">Clears the current filter.</div>
649 Clears the current filter.
678 <tr class="method-row config-row-alt0 expandable">
679 <td class="micon"><a class="exi" href="#expand"> </a></td>
683 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
684 <div class="fixedFont">
685 <span class="attributes"></span><b class="itemname">clearSelections</b>
687 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
694 <div class="short">Clear all selections</div>
707 <dl class="detailList">
708 <dt class="heading">Parameters:</dt>
711 <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>
714 <dd>(optional) true to skip firing of the selectionchange event</dd>
734 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
740 <tr class="method-row config-row-alt1 expandable notInherited">
741 <td class="micon"><a class="exi" href="#expand"> </a></td>
745 <a id="Roo.JsonView-method-filter" name=".filter"></a>
746 <div class="fixedFont">
747 <span class="attributes"></span><b class="itemname">filter</b>
749 (<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>)
756 <div class="short">Filter the data by a specific property.</div>
762 Filter the data by a specific property.
769 <dl class="detailList">
770 <dt class="heading">Parameters:</dt>
773 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
776 <dd>A property on your JSON objects</dd>
779 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
782 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
808 <tr class="method-row config-row-alt0 expandable notInherited">
809 <td class="micon"><a class="exi" href="#expand"> </a></td>
813 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
814 <div class="fixedFont">
815 <span class="attributes"></span><b class="itemname">filterBy</b>
817 (<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>)
824 <div class="short">Filter by a function.</div>
830 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.
837 <dl class="detailList">
838 <dt class="heading">Parameters:</dt>
841 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
847 <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>
850 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
876 <tr class="method-row config-row-alt1 expandable">
877 <td class="micon"><a class="exi" href="#expand"> </a></td>
881 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
882 <div class="fixedFont">
883 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
885 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
891 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
900 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
906 Returns the template node the passed child belongs to or null if it doesn't belong to one.
913 <dl class="detailList">
914 <dt class="heading">Parameters:</dt>
917 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
928 <dl class="detailList">
929 <dt class="heading">Returns:</dt>
931 <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>
947 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
953 <tr class="method-row config-row-alt0 expandable">
954 <td class="micon"><a class="exi" href="#expand"> </a></td>
958 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
959 <div class="fixedFont">
960 <span class="attributes"></span><b class="itemname">fireEvent</b>
962 (<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>)
968 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
977 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
983 Fires the specified event with the passed parameters (minus the event name).
990 <dl class="detailList">
991 <dt class="heading">Parameters:</dt>
994 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1000 <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>
1003 <dd>Variable number of parameters are passed to handlers</dd>
1011 <dl class="detailList">
1012 <dt class="heading">Returns:</dt>
1014 <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>
1028 <td class="msource">
1030 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1036 <tr class="method-row config-row-alt1 expandable notInherited">
1037 <td class="micon"><a class="exi" href="#expand"> </a></td>
1041 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
1042 <div class="fixedFont">
1043 <span class="attributes"></span><b class="itemname">getCount</b>
1051 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1060 <div class="short">Get the number of records in the current JSON dataset</div>
1066 Get the number of records in the current JSON dataset
1077 <dl class="detailList">
1078 <dt class="heading">Returns:</dt>
1080 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1094 <td class="msource">
1102 <tr class="method-row config-row-alt0 expandable">
1103 <td class="micon"><a class="exi" href="#expand"> </a></td>
1107 <a id="Roo.View-method-getEl" name=".getEl"></a>
1108 <div class="fixedFont">
1109 <span class="attributes"></span><b class="itemname">getEl</b>
1117 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1126 <div class="short">Returns the element this view is bound to.</div>
1132 Returns the element this view is bound to.
1143 <dl class="detailList">
1144 <dt class="heading">Returns:</dt>
1146 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1160 <td class="msource">
1162 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1168 <tr class="method-row config-row-alt1 expandable">
1169 <td class="micon"><a class="exi" href="#expand"> </a></td>
1173 <a id="Roo.View-method-getNode" name=".getNode"></a>
1174 <div class="fixedFont">
1175 <span class="attributes"></span><b class="itemname">getNode</b>
1177 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1183 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1192 <div class="short">Gets a template node.</div>
1198 Gets a template node.
1205 <dl class="detailList">
1206 <dt class="heading">Parameters:</dt>
1209 <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>
1212 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1220 <dl class="detailList">
1221 <dt class="heading">Returns:</dt>
1223 <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>
1237 <td class="msource">
1239 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1245 <tr class="method-row config-row-alt0 expandable notInherited">
1246 <td class="micon"><a class="exi" href="#expand"> </a></td>
1250 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1251 <div class="fixedFont">
1252 <span class="attributes"></span><b class="itemname">getNodeData</b>
1254 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1260 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1269 <div class="short">Returns the JSON object for the specified node(s)</div>
1275 Returns the JSON object for the specified node(s)
1282 <dl class="detailList">
1283 <dt class="heading">Parameters:</dt>
1286 <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>
1289 <dd>The node or an array of nodes</dd>
1297 <dl class="detailList">
1298 <dt class="heading">Returns:</dt>
1300 <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>
1314 <td class="msource">
1322 <tr class="method-row config-row-alt1 expandable">
1323 <td class="micon"><a class="exi" href="#expand"> </a></td>
1327 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1328 <div class="fixedFont">
1329 <span class="attributes"></span><b class="itemname">getNodes</b>
1331 (<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>)
1337 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1346 <div class="short">Gets a range template nodes.</div>
1352 Gets a range template nodes.
1359 <dl class="detailList">
1360 <dt class="heading">Parameters:</dt>
1363 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1369 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1380 <dl class="detailList">
1381 <dt class="heading">Returns:</dt>
1383 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1397 <td class="msource">
1399 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1405 <tr class="method-row config-row-alt0 expandable">
1406 <td class="micon"><a class="exi" href="#expand"> </a></td>
1410 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1411 <div class="fixedFont">
1412 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1420 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1429 <div class="short">Get the indexes of the selected nodes.</div>
1435 Get the indexes of the selected nodes.
1446 <dl class="detailList">
1447 <dt class="heading">Returns:</dt>
1449 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1463 <td class="msource">
1465 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1471 <tr class="method-row config-row-alt1 expandable">
1472 <td class="micon"><a class="exi" href="#expand"> </a></td>
1476 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1477 <div class="fixedFont">
1478 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1486 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1495 <div class="short">Get the currently selected nodes.</div>
1501 Get the currently selected nodes.
1512 <dl class="detailList">
1513 <dt class="heading">Returns:</dt>
1515 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1529 <td class="msource">
1531 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1537 <tr class="method-row config-row-alt0 expandable">
1538 <td class="micon"><a class="exi" href="#expand"> </a></td>
1542 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1543 <div class="fixedFont">
1544 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1552 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1561 <div class="short">Get the number of selected nodes.</div>
1567 Get the number of selected nodes.
1578 <dl class="detailList">
1579 <dt class="heading">Returns:</dt>
1581 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1595 <td class="msource">
1597 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1603 <tr class="method-row config-row-alt1 expandable">
1604 <td class="micon"><a class="exi" href="#expand"> </a></td>
1608 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1609 <div class="fixedFont">
1610 <span class="attributes"></span><b class="itemname">hasListener</b>
1612 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1618 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1627 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1633 Checks to see if this object has any listeners for a specified event
1640 <dl class="detailList">
1641 <dt class="heading">Parameters:</dt>
1644 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1647 <dd>The name of the event to check for</dd>
1655 <dl class="detailList">
1656 <dt class="heading">Returns:</dt>
1658 <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>
1672 <td class="msource">
1674 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1680 <tr class="method-row config-row-alt0 expandable">
1681 <td class="micon"><a class="exi" href="#expand"> </a></td>
1685 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1686 <div class="fixedFont">
1687 <span class="attributes"></span><b class="itemname">indexOf</b>
1689 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1695 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1704 <div class="short">Finds the index of the passed node</div>
1710 Finds the index of the passed node
1717 <dl class="detailList">
1718 <dt class="heading">Parameters:</dt>
1721 <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>
1724 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1732 <dl class="detailList">
1733 <dt class="heading">Returns:</dt>
1735 <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>
1749 <td class="msource">
1751 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1757 <tr class="method-row config-row-alt1 expandable">
1758 <td class="micon"><a class="exi" href="#expand"> </a></td>
1762 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1763 <div class="fixedFont">
1764 <span class="attributes"></span><b class="itemname">isSelected</b>
1766 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1772 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1781 <div class="short">Returns true if the passed node is selected</div>
1787 Returns true if the passed node is selected
1794 <dl class="detailList">
1795 <dt class="heading">Parameters:</dt>
1798 <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>
1801 <dd>The node or node index</dd>
1809 <dl class="detailList">
1810 <dt class="heading">Returns:</dt>
1812 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1826 <td class="msource">
1828 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1834 <tr class="method-row config-row-alt0 expandable notInherited">
1835 <td class="micon"><a class="exi" href="#expand"> </a></td>
1839 <a id="Roo.JsonView-method-load" name=".load"></a>
1840 <div class="fixedFont">
1841 <span class="attributes"></span><b class="itemname">load</b>
1843 (<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>)
1850 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1856 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.
1863 <dl class="detailList">
1864 <dt class="heading">Parameters:</dt>
1867 <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>
1870 <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>
1873 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1876 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1879 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1882 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1885 <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>
1888 <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>
1906 <td class="msource">
1914 <tr class="method-row config-row-alt1 expandable">
1915 <td class="micon"><a class="exi" href="#expand"> </a></td>
1919 <a id="Roo.util.Observable-method-on" name=".on"></a>
1920 <div class="fixedFont">
1921 <span class="attributes"></span><b class="itemname">on</b>
1923 (<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>)
1930 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1936 Appends an event handler to this element (shorthand for addListener)
1943 <dl class="detailList">
1944 <dt class="heading">Parameters:</dt>
1947 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1950 <dd>The type of event to listen for</dd>
1953 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1956 <dd>The method the event invokes</dd>
1959 <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>
1962 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1965 <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>
1986 <td class="msource">
1988 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1994 <tr class="method-row config-row-alt0 expandable">
1995 <td class="micon"><a class="exi" href="#expand"> </a></td>
1999 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
2000 <div class="fixedFont">
2001 <span class="attributes"></span><b class="itemname">prepareData</b>
2003 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
2010 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
2016 Function to override to reformat the data that is sent to<br/>the template for each node.
2023 <dl class="detailList">
2024 <dt class="heading">Parameters:</dt>
2027 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
2030 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
2048 <td class="msource">
2050 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2056 <tr class="method-row config-row-alt1 expandable">
2057 <td class="micon"><a class="exi" href="#expand"> </a></td>
2061 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2062 <div class="fixedFont">
2063 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2072 <div class="short">Removes all listeners for this object</div>
2078 Removes all listeners for this object
2099 <td class="msource">
2101 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2107 <tr class="method-row config-row-alt0 expandable notInherited">
2108 <td class="micon"><a class="exi" href="#expand"> </a></td>
2112 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2113 <div class="fixedFont">
2114 <span class="attributes"></span><b class="itemname">refresh</b>
2123 <div class="short">Refreshes the view.</div>
2150 <td class="msource">
2158 <tr class="method-row config-row-alt1 expandable">
2159 <td class="micon"><a class="exi" href="#expand"> </a></td>
2163 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2164 <div class="fixedFont">
2165 <span class="attributes"></span><b class="itemname">refreshNode</b>
2167 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2174 <div class="short">Refresh an individual node.</div>
2180 Refresh an individual node.
2187 <dl class="detailList">
2188 <dt class="heading">Parameters:</dt>
2191 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2212 <td class="msource">
2214 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2220 <tr class="method-row config-row-alt0 expandable">
2221 <td class="micon"><a class="exi" href="#expand"> </a></td>
2225 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2226 <div class="fixedFont">
2227 <span class="attributes"></span><b class="itemname">removeListener</b>
2229 (<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>)
2236 <div class="short">Removes a listener</div>
2249 <dl class="detailList">
2250 <dt class="heading">Parameters:</dt>
2253 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2256 <dd>The type of event to listen for</dd>
2259 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2262 <dd>The handler to remove</dd>
2265 <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>
2268 <dd>(optional) The scope (this object) for the handler</dd>
2286 <td class="msource">
2288 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2294 <tr class="method-row config-row-alt1 expandable">
2295 <td class="micon"><a class="exi" href="#expand"> </a></td>
2299 <a id="Roo.View-method-select" name=".select"></a>
2300 <div class="fixedFont">
2301 <span class="attributes"></span><b class="itemname">select</b>
2303 (<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>)
2310 <div class="short">Selects nodes.</div>
2323 <dl class="detailList">
2324 <dt class="heading">Parameters:</dt>
2327 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2330 <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>
2333 <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>
2336 <dd>(optional) true to keep existing selections</dd>
2339 <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>
2342 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2360 <td class="msource">
2362 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2368 <tr class="method-row config-row-alt0 expandable">
2369 <td class="micon"><a class="exi" href="#expand"> </a></td>
2373 <a id="Roo.View-method-setStore" name=".setStore"></a>
2374 <div class="fixedFont">
2375 <span class="attributes"></span><b class="itemname">setStore</b>
2377 (Store <B><i>store</i></B>)
2384 <div class="short">Changes the data store this view uses and refresh the view.</div>
2390 Changes the data store this view uses and refresh the view.
2397 <dl class="detailList">
2398 <dt class="heading">Parameters:</dt>
2401 <span class="fixedFont">Store</span> <b>store</b>
2422 <td class="msource">
2424 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2430 <tr class="method-row config-row-alt1 expandable notInherited">
2431 <td class="micon"><a class="exi" href="#expand"> </a></td>
2435 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2436 <div class="fixedFont">
2437 <span class="attributes"></span><b class="itemname">sort</b>
2439 (<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>)
2446 <div class="short">Sorts the data for this view and refreshes it.</div>
2452 Sorts the data for this view and refreshes it.
2459 <dl class="detailList">
2460 <dt class="heading">Parameters:</dt>
2463 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2466 <dd>A property on your JSON objects to sort on</dd>
2469 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2472 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2475 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2478 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2496 <td class="msource">
2504 <tr class="method-row config-row-alt0 expandable">
2505 <td class="micon"><a class="exi" href="#expand"> </a></td>
2509 <a id="Roo.util.Observable-method-un" name=".un"></a>
2510 <div class="fixedFont">
2511 <span class="attributes"></span><b class="itemname">un</b>
2513 (<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>)
2520 <div class="short">Removes a listener (shorthand for removeListener)</div>
2526 Removes a listener (shorthand for removeListener)
2533 <dl class="detailList">
2534 <dt class="heading">Parameters:</dt>
2537 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2540 <dd>The type of event to listen for</dd>
2543 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2546 <dd>The handler to remove</dd>
2549 <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>
2552 <dd>(optional) The scope (this object) for the handler</dd>
2570 <td class="msource">
2572 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2581 <!-- ============================== events summary / details ======================== -->
2584 <a id="Roo.JsonView-events"></a>
2593 <table cellspacing="0" class="member-table">
2594 <caption>Events</caption>
2597 <th class="sig-header" colspan="2">Event</th>
2598 <th class="msource-header">Defined By</th>
2607 <tr class="method-row expandable config-row-alt0">
2608 <td class="micon"><a class="exi" href="#expand"> </a></td>
2611 <a id="Roo.View-event-*beforeclick"></a>
2613 <div class="fixedFont">
2614 <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>)
2620 <div class="short">Fires before a click is processed.
2626 Fires before a click is processed. Returns false to cancel the default action.
2632 <dl class="detailList">
2633 <dt class="heading">Parameters:</dt>
2636 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2642 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2645 <dd>The index of the target node</dd>
2648 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2651 <dd>The target node</dd>
2654 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2657 <dd>The raw event object</dd>
2675 <td class="msource">
2676 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2680 <tr class="method-row expandable config-row-alt1 notInherited">
2681 <td class="micon"><a class="exi" href="#expand"> </a></td>
2684 <a id="Roo.JsonView-event-*beforerender"></a>
2686 <div class="fixedFont">
2687 <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>)
2693 <div class="short">Fires before rendering of the downloaded JSON data.
2699 Fires before rendering of the downloaded JSON data.
2705 <dl class="detailList">
2706 <dt class="heading">Parameters:</dt>
2709 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2715 <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>
2718 <dd>The JSON data loaded</dd>
2736 <td class="msource">
2741 <tr class="method-row expandable config-row-alt0">
2742 <td class="micon"><a class="exi" href="#expand"> </a></td>
2745 <a id="Roo.View-event-*beforeselect"></a>
2747 <div class="fixedFont">
2748 <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>)
2754 <div class="short">Fires before a selection is made.
2760 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2766 <dl class="detailList">
2767 <dt class="heading">Parameters:</dt>
2770 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2776 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2779 <dd>The node to be selected</dd>
2782 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2785 <dd>Array of currently selected nodes</dd>
2803 <td class="msource">
2804 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2808 <tr class="method-row expandable config-row-alt1">
2809 <td class="micon"><a class="exi" href="#expand"> </a></td>
2812 <a id="Roo.View-event-*click"></a>
2814 <div class="fixedFont">
2815 <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>)
2821 <div class="short">Fires when a template node is clicked.
2827 Fires when a template node is clicked.
2833 <dl class="detailList">
2834 <dt class="heading">Parameters:</dt>
2837 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2843 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2846 <dd>The index of the target node</dd>
2849 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2852 <dd>The target node</dd>
2855 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2858 <dd>The raw event object</dd>
2876 <td class="msource">
2877 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2881 <tr class="method-row expandable config-row-alt0">
2882 <td class="micon"><a class="exi" href="#expand"> </a></td>
2885 <a id="Roo.View-event-*contextmenu"></a>
2887 <div class="fixedFont">
2888 <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>)
2894 <div class="short">Fires when a template node is right clicked.
2900 Fires when a template node is right clicked.
2906 <dl class="detailList">
2907 <dt class="heading">Parameters:</dt>
2910 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2916 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2919 <dd>The index of the target node</dd>
2922 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2925 <dd>The target node</dd>
2928 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2931 <dd>The raw event object</dd>
2949 <td class="msource">
2950 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2954 <tr class="method-row expandable config-row-alt1">
2955 <td class="micon"><a class="exi" href="#expand"> </a></td>
2958 <a id="Roo.View-event-*dblclick"></a>
2960 <div class="fixedFont">
2961 <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>)
2967 <div class="short">Fires when a template node is double clicked.
2973 Fires when a template node is double clicked.
2979 <dl class="detailList">
2980 <dt class="heading">Parameters:</dt>
2983 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2989 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2992 <dd>The index of the target node</dd>
2995 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2998 <dd>The target node</dd>
3001 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3004 <dd>The raw event object</dd>
3022 <td class="msource">
3023 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3027 <tr class="method-row expandable config-row-alt0 notInherited">
3028 <td class="micon"><a class="exi" href="#expand"> </a></td>
3031 <a id="Roo.JsonView-event-*load"></a>
3033 <div class="fixedFont">
3034 <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>)
3040 <div class="short">Fires when data is loaded.
3046 Fires when data is loaded.
3052 <dl class="detailList">
3053 <dt class="heading">Parameters:</dt>
3056 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3062 <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>
3065 <dd>The JSON data loaded</dd>
3068 <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>
3071 <dd>The raw Connect response object</dd>
3089 <td class="msource">
3094 <tr class="method-row expandable config-row-alt1 notInherited">
3095 <td class="micon"><a class="exi" href="#expand"> </a></td>
3098 <a id="Roo.JsonView-event-*loadexception"></a>
3100 <div class="fixedFont">
3101 <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>)
3107 <div class="short">Fires when loading fails.
3113 Fires when loading fails.
3119 <dl class="detailList">
3120 <dt class="heading">Parameters:</dt>
3123 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3129 <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>
3132 <dd>The raw Connect response object</dd>
3150 <td class="msource">
3155 <tr class="method-row expandable config-row-alt0">
3156 <td class="micon"><a class="exi" href="#expand"> </a></td>
3159 <a id="Roo.View-event-*selectionchange"></a>
3161 <div class="fixedFont">
3162 <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>)
3168 <div class="short">Fires when the selected nodes change.
3174 Fires when the selected nodes change.
3180 <dl class="detailList">
3181 <dt class="heading">Parameters:</dt>
3184 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3190 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3193 <dd>Array of the selected nodes</dd>
3211 <td class="msource">
3212 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3223 <!-- ============================== footer ================================= -->
3224 <div class="fineprint" style="clear:both">
3226 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Jan 14 2011 17:01:48 GMT+0800 (HKT)
3228 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>