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/> template: '<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 notInherited">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.JsonView-cfg-The" name=".The"></a>
133 <div class="fixedFont">
134 <b class="itemname">The</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
140 <div class="short">root property in the loaded JSON object that contains the data</div>
144 <div class="long">root property in the loaded JSON object that contains the data</div>
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-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-store" name=".store"></a>
283 <div class="fixedFont">
284 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
290 <div class="short">Data store to load data from.</div>
294 <div class="long">Data store to load data from.</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-tpl" name=".tpl"></a>
313 <div class="fixedFont">
314 <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>
320 <div class="short">The template used by this View</div>
324 <div class="long">The template used by this View</div>
332 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
348 <!-- ============================== public properties ==================== -->
352 <a id="Roo.JsonView-props"></a>
358 <table cellspacing="0" class="member-table">
359 <caption class="Empty">Public Properties - Has None</caption>
365 <!-- ============================== methods summary / details ======================== -->
368 <a id="Roo.JsonView-methods"></a>
369 <!-- constructor?? -->
376 <!-- then dynamics first -->
383 <table cellspacing="0" class="member-table">
384 <caption>Public Methods</caption>
386 <th class="sig-header" colspan="2">Method</th>
387 <th class="msource-header">Defined By</th>
397 <tr class="method-row config-row-alt0 expandable notInherited">
398 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo-method-JsonView" name=".JsonView"></a>
403 <div class="fixedFont">
404 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
406 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
414 <div class="short">Create a new Roo.JsonView</div>
421 Create a new Roo.JsonView
424 <dl class="detailList">
425 <dt class="heading">Parameters:</dt>
428 <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>
431 <dd>The config object</dd>
455 <tr class="method-row config-row-alt1 expandable">
456 <td class="micon"><a class="exi" href="#expand"> </a></td>
460 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
461 <div class="fixedFont">
462 <span class="attributes"></span><b class="itemname">addEvents</b>
464 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
471 <div class="short">Used to define events on this Observable</div>
477 Used to define events on this Observable
484 <dl class="detailList">
485 <dt class="heading">Parameters:</dt>
488 <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>
491 <dd>The object with the events defined</dd>
511 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
517 <tr class="method-row config-row-alt0 expandable">
518 <td class="micon"><a class="exi" href="#expand"> </a></td>
522 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
523 <div class="fixedFont">
524 <span class="attributes"></span><b class="itemname">addListener</b>
526 (<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>)
533 <div class="short">Appends an event handler to this component</div>
539 Appends an event handler to this component
546 <dl class="detailList">
547 <dt class="heading">Parameters:</dt>
550 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
553 <dd>The type of event to listen for</dd>
556 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
559 <dd>The method the event invokes</dd>
562 <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>
565 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
568 <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>
571 <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>
591 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
597 <tr class="method-row config-row-alt1 expandable notInherited">
598 <td class="micon"><a class="exi" href="#expand"> </a></td>
602 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
603 <div class="fixedFont">
604 <span class="attributes"></span><b class="itemname">clearFilter</b>
613 <div class="short">Clears the current filter.</div>
619 Clears the current filter.
648 <tr class="method-row config-row-alt0 expandable">
649 <td class="micon"><a class="exi" href="#expand"> </a></td>
653 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
654 <div class="fixedFont">
655 <span class="attributes"></span><b class="itemname">clearSelections</b>
657 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
664 <div class="short">Clear all selections</div>
677 <dl class="detailList">
678 <dt class="heading">Parameters:</dt>
681 <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>
684 <dd>(optional) true to skip firing of the selectionchange event</dd>
704 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
710 <tr class="method-row config-row-alt1 expandable notInherited">
711 <td class="micon"><a class="exi" href="#expand"> </a></td>
715 <a id="Roo.JsonView-method-filter" name=".filter"></a>
716 <div class="fixedFont">
717 <span class="attributes"></span><b class="itemname">filter</b>
719 (<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>)
726 <div class="short">Filter the data by a specific property.</div>
732 Filter the data by a specific property.
739 <dl class="detailList">
740 <dt class="heading">Parameters:</dt>
743 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
746 <dd>A property on your JSON objects</dd>
749 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
752 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
778 <tr class="method-row config-row-alt0 expandable notInherited">
779 <td class="micon"><a class="exi" href="#expand"> </a></td>
783 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
784 <div class="fixedFont">
785 <span class="attributes"></span><b class="itemname">filterBy</b>
787 (<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>)
794 <div class="short">Filter by a function.</div>
800 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.
807 <dl class="detailList">
808 <dt class="heading">Parameters:</dt>
811 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
817 <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>
820 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
846 <tr class="method-row config-row-alt1 expandable">
847 <td class="micon"><a class="exi" href="#expand"> </a></td>
851 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
852 <div class="fixedFont">
853 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
855 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
861 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
870 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
876 Returns the template node the passed child belongs to or null if it doesn't belong to one.
883 <dl class="detailList">
884 <dt class="heading">Parameters:</dt>
887 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
898 <dl class="detailList">
899 <dt class="heading">Returns:</dt>
901 <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>
917 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
923 <tr class="method-row config-row-alt0 expandable">
924 <td class="micon"><a class="exi" href="#expand"> </a></td>
928 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
929 <div class="fixedFont">
930 <span class="attributes"></span><b class="itemname">fireEvent</b>
932 (<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>)
938 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
947 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
953 Fires the specified event with the passed parameters (minus the event name).
960 <dl class="detailList">
961 <dt class="heading">Parameters:</dt>
964 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
970 <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>
973 <dd>Variable number of parameters are passed to handlers</dd>
981 <dl class="detailList">
982 <dt class="heading">Returns:</dt>
984 <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>
1000 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1006 <tr class="method-row config-row-alt1 expandable notInherited">
1007 <td class="micon"><a class="exi" href="#expand"> </a></td>
1011 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
1012 <div class="fixedFont">
1013 <span class="attributes"></span><b class="itemname">getCount</b>
1021 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1030 <div class="short">Get the number of records in the current JSON dataset</div>
1036 Get the number of records in the current JSON dataset
1047 <dl class="detailList">
1048 <dt class="heading">Returns:</dt>
1050 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1064 <td class="msource">
1072 <tr class="method-row config-row-alt0 expandable">
1073 <td class="micon"><a class="exi" href="#expand"> </a></td>
1077 <a id="Roo.View-method-getEl" name=".getEl"></a>
1078 <div class="fixedFont">
1079 <span class="attributes"></span><b class="itemname">getEl</b>
1087 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1096 <div class="short">Returns the element this view is bound to.</div>
1102 Returns the element this view is bound to.
1113 <dl class="detailList">
1114 <dt class="heading">Returns:</dt>
1116 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1130 <td class="msource">
1132 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1138 <tr class="method-row config-row-alt1 expandable">
1139 <td class="micon"><a class="exi" href="#expand"> </a></td>
1143 <a id="Roo.View-method-getNode" name=".getNode"></a>
1144 <div class="fixedFont">
1145 <span class="attributes"></span><b class="itemname">getNode</b>
1147 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1153 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1162 <div class="short">Gets a template node.</div>
1168 Gets a template node.
1175 <dl class="detailList">
1176 <dt class="heading">Parameters:</dt>
1179 <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>
1182 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1190 <dl class="detailList">
1191 <dt class="heading">Returns:</dt>
1193 <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>
1207 <td class="msource">
1209 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1215 <tr class="method-row config-row-alt0 expandable notInherited">
1216 <td class="micon"><a class="exi" href="#expand"> </a></td>
1220 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1221 <div class="fixedFont">
1222 <span class="attributes"></span><b class="itemname">getNodeData</b>
1224 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1230 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1239 <div class="short">Returns the JSON object for the specified node(s)</div>
1245 Returns the JSON object for the specified node(s)
1252 <dl class="detailList">
1253 <dt class="heading">Parameters:</dt>
1256 <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>
1259 <dd>The node or an array of nodes</dd>
1267 <dl class="detailList">
1268 <dt class="heading">Returns:</dt>
1270 <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>
1284 <td class="msource">
1292 <tr class="method-row config-row-alt1 expandable">
1293 <td class="micon"><a class="exi" href="#expand"> </a></td>
1297 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1298 <div class="fixedFont">
1299 <span class="attributes"></span><b class="itemname">getNodes</b>
1301 (<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>)
1307 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1316 <div class="short">Gets a range template nodes.</div>
1322 Gets a range template nodes.
1329 <dl class="detailList">
1330 <dt class="heading">Parameters:</dt>
1333 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1339 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1350 <dl class="detailList">
1351 <dt class="heading">Returns:</dt>
1353 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1367 <td class="msource">
1369 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1375 <tr class="method-row config-row-alt0 expandable">
1376 <td class="micon"><a class="exi" href="#expand"> </a></td>
1380 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1381 <div class="fixedFont">
1382 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1390 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1399 <div class="short">Get the indexes of the selected nodes.</div>
1405 Get the indexes of the selected nodes.
1416 <dl class="detailList">
1417 <dt class="heading">Returns:</dt>
1419 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1433 <td class="msource">
1435 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1441 <tr class="method-row config-row-alt1 expandable">
1442 <td class="micon"><a class="exi" href="#expand"> </a></td>
1446 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1447 <div class="fixedFont">
1448 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1456 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1465 <div class="short">Get the currently selected nodes.</div>
1471 Get the currently selected nodes.
1482 <dl class="detailList">
1483 <dt class="heading">Returns:</dt>
1485 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1499 <td class="msource">
1501 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1507 <tr class="method-row config-row-alt0 expandable">
1508 <td class="micon"><a class="exi" href="#expand"> </a></td>
1512 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1513 <div class="fixedFont">
1514 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1522 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1531 <div class="short">Get the number of selected nodes.</div>
1537 Get the number of selected nodes.
1548 <dl class="detailList">
1549 <dt class="heading">Returns:</dt>
1551 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1565 <td class="msource">
1567 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1573 <tr class="method-row config-row-alt1 expandable">
1574 <td class="micon"><a class="exi" href="#expand"> </a></td>
1578 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1579 <div class="fixedFont">
1580 <span class="attributes"></span><b class="itemname">hasListener</b>
1582 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1588 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1597 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1603 Checks to see if this object has any listeners for a specified event
1610 <dl class="detailList">
1611 <dt class="heading">Parameters:</dt>
1614 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1617 <dd>The name of the event to check for</dd>
1625 <dl class="detailList">
1626 <dt class="heading">Returns:</dt>
1628 <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>
1642 <td class="msource">
1644 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1650 <tr class="method-row config-row-alt0 expandable">
1651 <td class="micon"><a class="exi" href="#expand"> </a></td>
1655 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1656 <div class="fixedFont">
1657 <span class="attributes"></span><b class="itemname">indexOf</b>
1659 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1665 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1674 <div class="short">Finds the index of the passed node</div>
1680 Finds the index of the passed node
1687 <dl class="detailList">
1688 <dt class="heading">Parameters:</dt>
1691 <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>
1694 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1702 <dl class="detailList">
1703 <dt class="heading">Returns:</dt>
1705 <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>
1719 <td class="msource">
1721 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1727 <tr class="method-row config-row-alt1 expandable">
1728 <td class="micon"><a class="exi" href="#expand"> </a></td>
1732 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1733 <div class="fixedFont">
1734 <span class="attributes"></span><b class="itemname">isSelected</b>
1736 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1742 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1751 <div class="short">Returns true if the passed node is selected</div>
1757 Returns true if the passed node is selected
1764 <dl class="detailList">
1765 <dt class="heading">Parameters:</dt>
1768 <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>
1771 <dd>The node or node index</dd>
1779 <dl class="detailList">
1780 <dt class="heading">Returns:</dt>
1782 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1796 <td class="msource">
1798 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1804 <tr class="method-row config-row-alt0 expandable notInherited">
1805 <td class="micon"><a class="exi" href="#expand"> </a></td>
1809 <a id="Roo.JsonView-method-load" name=".load"></a>
1810 <div class="fixedFont">
1811 <span class="attributes"></span><b class="itemname">load</b>
1813 (<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>)
1820 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1826 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.
1833 <dl class="detailList">
1834 <dt class="heading">Parameters:</dt>
1837 <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>
1840 <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>
1843 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1846 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1849 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1852 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1855 <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>
1858 <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>
1876 <td class="msource">
1884 <tr class="method-row config-row-alt1 expandable">
1885 <td class="micon"><a class="exi" href="#expand"> </a></td>
1889 <a id="Roo.util.Observable-method-on" name=".on"></a>
1890 <div class="fixedFont">
1891 <span class="attributes"></span><b class="itemname">on</b>
1893 (<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>)
1900 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1906 Appends an event handler to this element (shorthand for addListener)
1913 <dl class="detailList">
1914 <dt class="heading">Parameters:</dt>
1917 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1920 <dd>The type of event to listen for</dd>
1923 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1926 <dd>The method the event invokes</dd>
1929 <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>
1932 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1935 <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>
1956 <td class="msource">
1958 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1964 <tr class="method-row config-row-alt0 expandable">
1965 <td class="micon"><a class="exi" href="#expand"> </a></td>
1969 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1970 <div class="fixedFont">
1971 <span class="attributes"></span><b class="itemname">prepareData</b>
1973 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1980 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1986 Function to override to reformat the data that is sent to<br/>the template for each node.
1993 <dl class="detailList">
1994 <dt class="heading">Parameters:</dt>
1997 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
2000 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
2018 <td class="msource">
2020 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2026 <tr class="method-row config-row-alt1 expandable">
2027 <td class="micon"><a class="exi" href="#expand"> </a></td>
2031 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2032 <div class="fixedFont">
2033 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2042 <div class="short">Removes all listeners for this object</div>
2048 Removes all listeners for this object
2069 <td class="msource">
2071 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2077 <tr class="method-row config-row-alt0 expandable notInherited">
2078 <td class="micon"><a class="exi" href="#expand"> </a></td>
2082 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2083 <div class="fixedFont">
2084 <span class="attributes"></span><b class="itemname">refresh</b>
2093 <div class="short">Refreshes the view.</div>
2120 <td class="msource">
2128 <tr class="method-row config-row-alt1 expandable">
2129 <td class="micon"><a class="exi" href="#expand"> </a></td>
2133 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2134 <div class="fixedFont">
2135 <span class="attributes"></span><b class="itemname">refreshNode</b>
2137 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2144 <div class="short">Refresh an individual node.</div>
2150 Refresh an individual node.
2157 <dl class="detailList">
2158 <dt class="heading">Parameters:</dt>
2161 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2182 <td class="msource">
2184 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2190 <tr class="method-row config-row-alt0 expandable">
2191 <td class="micon"><a class="exi" href="#expand"> </a></td>
2195 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2196 <div class="fixedFont">
2197 <span class="attributes"></span><b class="itemname">removeListener</b>
2199 (<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>)
2206 <div class="short">Removes a listener</div>
2219 <dl class="detailList">
2220 <dt class="heading">Parameters:</dt>
2223 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2226 <dd>The type of event to listen for</dd>
2229 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2232 <dd>The handler to remove</dd>
2235 <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>
2238 <dd>(optional) The scope (this object) for the handler</dd>
2256 <td class="msource">
2258 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2264 <tr class="method-row config-row-alt1 expandable">
2265 <td class="micon"><a class="exi" href="#expand"> </a></td>
2269 <a id="Roo.View-method-select" name=".select"></a>
2270 <div class="fixedFont">
2271 <span class="attributes"></span><b class="itemname">select</b>
2273 (<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>)
2280 <div class="short">Selects nodes.</div>
2293 <dl class="detailList">
2294 <dt class="heading">Parameters:</dt>
2297 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2300 <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>
2303 <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>
2306 <dd>(optional) true to keep existing selections</dd>
2309 <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>
2312 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2330 <td class="msource">
2332 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2338 <tr class="method-row config-row-alt0 expandable">
2339 <td class="micon"><a class="exi" href="#expand"> </a></td>
2343 <a id="Roo.View-method-setStore" name=".setStore"></a>
2344 <div class="fixedFont">
2345 <span class="attributes"></span><b class="itemname">setStore</b>
2347 (Store <B><i>store</i></B>)
2354 <div class="short">Changes the data store this view uses and refresh the view.</div>
2360 Changes the data store this view uses and refresh the view.
2367 <dl class="detailList">
2368 <dt class="heading">Parameters:</dt>
2371 <span class="fixedFont">Store</span> <b>store</b>
2392 <td class="msource">
2394 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2400 <tr class="method-row config-row-alt1 expandable notInherited">
2401 <td class="micon"><a class="exi" href="#expand"> </a></td>
2405 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2406 <div class="fixedFont">
2407 <span class="attributes"></span><b class="itemname">sort</b>
2409 (<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>)
2416 <div class="short">Sorts the data for this view and refreshes it.</div>
2422 Sorts the data for this view and refreshes it.
2429 <dl class="detailList">
2430 <dt class="heading">Parameters:</dt>
2433 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2436 <dd>A property on your JSON objects to sort on</dd>
2439 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2442 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2445 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2448 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2466 <td class="msource">
2474 <tr class="method-row config-row-alt0 expandable">
2475 <td class="micon"><a class="exi" href="#expand"> </a></td>
2479 <a id="Roo.util.Observable-method-un" name=".un"></a>
2480 <div class="fixedFont">
2481 <span class="attributes"></span><b class="itemname">un</b>
2483 (<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>)
2490 <div class="short">Removes a listener (shorthand for removeListener)</div>
2496 Removes a listener (shorthand for removeListener)
2503 <dl class="detailList">
2504 <dt class="heading">Parameters:</dt>
2507 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2510 <dd>The type of event to listen for</dd>
2513 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2516 <dd>The handler to remove</dd>
2519 <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>
2522 <dd>(optional) The scope (this object) for the handler</dd>
2540 <td class="msource">
2542 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2551 <!-- ============================== events summary / details ======================== -->
2554 <a id="Roo.JsonView-events"></a>
2563 <table cellspacing="0" class="member-table">
2564 <caption>Events</caption>
2567 <th class="sig-header" colspan="2">Event</th>
2568 <th class="msource-header">Defined By</th>
2577 <tr class="method-row expandable config-row-alt0">
2578 <td class="micon"><a class="exi" href="#expand"> </a></td>
2581 <a id="Roo.View-event-*beforeclick"></a>
2583 <div class="fixedFont">
2584 <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>)
2590 <div class="short">Fires before a click is processed.
2596 Fires before a click is processed. Returns false to cancel the default action.
2602 <dl class="detailList">
2603 <dt class="heading">Parameters:</dt>
2606 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2612 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2615 <dd>The index of the target node</dd>
2618 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2621 <dd>The target node</dd>
2624 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2627 <dd>The raw event object</dd>
2645 <td class="msource">
2646 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2650 <tr class="method-row expandable config-row-alt1 notInherited">
2651 <td class="micon"><a class="exi" href="#expand"> </a></td>
2654 <a id="Roo.JsonView-event-*beforerender"></a>
2656 <div class="fixedFont">
2657 <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>)
2663 <div class="short">Fires before rendering of the downloaded JSON data.
2669 Fires before rendering of the downloaded JSON data.
2675 <dl class="detailList">
2676 <dt class="heading">Parameters:</dt>
2679 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2685 <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>
2688 <dd>The JSON data loaded</dd>
2706 <td class="msource">
2711 <tr class="method-row expandable config-row-alt0">
2712 <td class="micon"><a class="exi" href="#expand"> </a></td>
2715 <a id="Roo.View-event-*beforeselect"></a>
2717 <div class="fixedFont">
2718 <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>)
2724 <div class="short">Fires before a selection is made.
2730 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2736 <dl class="detailList">
2737 <dt class="heading">Parameters:</dt>
2740 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2746 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2749 <dd>The node to be selected</dd>
2752 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2755 <dd>Array of currently selected nodes</dd>
2773 <td class="msource">
2774 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2778 <tr class="method-row expandable config-row-alt1">
2779 <td class="micon"><a class="exi" href="#expand"> </a></td>
2782 <a id="Roo.View-event-*click"></a>
2784 <div class="fixedFont">
2785 <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>)
2791 <div class="short">Fires when a template node is clicked.
2797 Fires when a template node is clicked.
2803 <dl class="detailList">
2804 <dt class="heading">Parameters:</dt>
2807 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2813 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2816 <dd>The index of the target node</dd>
2819 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2822 <dd>The target node</dd>
2825 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2828 <dd>The raw event object</dd>
2846 <td class="msource">
2847 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2851 <tr class="method-row expandable config-row-alt0">
2852 <td class="micon"><a class="exi" href="#expand"> </a></td>
2855 <a id="Roo.View-event-*contextmenu"></a>
2857 <div class="fixedFont">
2858 <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>)
2864 <div class="short">Fires when a template node is right clicked.
2870 Fires when a template node is right clicked.
2876 <dl class="detailList">
2877 <dt class="heading">Parameters:</dt>
2880 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2886 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2889 <dd>The index of the target node</dd>
2892 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2895 <dd>The target node</dd>
2898 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2901 <dd>The raw event object</dd>
2919 <td class="msource">
2920 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2924 <tr class="method-row expandable config-row-alt1">
2925 <td class="micon"><a class="exi" href="#expand"> </a></td>
2928 <a id="Roo.View-event-*dblclick"></a>
2930 <div class="fixedFont">
2931 <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>)
2937 <div class="short">Fires when a template node is double clicked.
2943 Fires when a template node is double clicked.
2949 <dl class="detailList">
2950 <dt class="heading">Parameters:</dt>
2953 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2959 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2962 <dd>The index of the target node</dd>
2965 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2968 <dd>The target node</dd>
2971 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2974 <dd>The raw event object</dd>
2992 <td class="msource">
2993 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2997 <tr class="method-row expandable config-row-alt0 notInherited">
2998 <td class="micon"><a class="exi" href="#expand"> </a></td>
3001 <a id="Roo.JsonView-event-*load"></a>
3003 <div class="fixedFont">
3004 <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>)
3010 <div class="short">Fires when data is loaded.
3016 Fires when data is loaded.
3022 <dl class="detailList">
3023 <dt class="heading">Parameters:</dt>
3026 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3032 <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>
3035 <dd>The JSON data loaded</dd>
3038 <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>
3041 <dd>The raw Connect response object</dd>
3059 <td class="msource">
3064 <tr class="method-row expandable config-row-alt1 notInherited">
3065 <td class="micon"><a class="exi" href="#expand"> </a></td>
3068 <a id="Roo.JsonView-event-*loadexception"></a>
3070 <div class="fixedFont">
3071 <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>)
3077 <div class="short">Fires when loading fails.
3083 Fires when loading fails.
3089 <dl class="detailList">
3090 <dt class="heading">Parameters:</dt>
3093 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3099 <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>
3102 <dd>The raw Connect response object</dd>
3120 <td class="msource">
3125 <tr class="method-row expandable config-row-alt0">
3126 <td class="micon"><a class="exi" href="#expand"> </a></td>
3129 <a id="Roo.View-event-*selectionchange"></a>
3131 <div class="fixedFont">
3132 <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>)
3138 <div class="short">Fires when the selected nodes change.
3144 Fires when the selected nodes change.
3150 <dl class="detailList">
3151 <dt class="heading">Parameters:</dt>
3154 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3160 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3163 <dd>Array of the selected nodes</dd>
3181 <td class="msource">
3182 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3193 <!-- ============================== footer ================================= -->
3194 <div class="fineprint" style="clear:both">
3196 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Jul 26 2010 17:25:37 GMT+0800 (HKT)
3198 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>