1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.JsonView</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.JsonView-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.JsonView-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.JsonView-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.JsonView-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.JsonView
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_JsonView.js.html">Roo/JsonView.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">JsonView</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Shortcut class to create a JSON + {<b>link</b> Roo.UpdateManager} template view. Usage:<br/><pre><code><br/>var view = new Roo.JsonView({<br/> container: "my-element",<br/> tpl: '<div id="{id}">{foo} - {bar}</div>', // auto create template<br/> multiSelect: true, <br/> jsonRoot: "data" <br/>});<br/><br/>// listen for node click?<br/>view.on("click", function(vw, index, node, e){<br/> alert('Node "' + node.id + '" at index: ' + index + " was clicked.");<br/>});<br/><br/>// direct load of JSON data<br/>view.load("foobar.php");<br/><br/>// Example from my blog list<br/>var tpl = new Roo.Template(<br/> '<div class="entry">' +<br/> '<a class="entry-title" href="{link}">{title}</a>' +<br/> "<h4>{date} by {author} | {comments} Comments</h4>{description}" +<br/> "</div><hr />"<br/>);<br/><br/>var moreView = new Roo.JsonView({<br/> container : "entry-list", <br/> template : tpl,<br/> jsonRoot: "posts"<br/>});<br/>moreView.on("beforerender", this.sortEntries, this);<br/>moreView.load({<br/> url: "/blog/get-posts.php",<br/> params: "allposts=true",<br/> text: "Loading Blog Entries..."<br/>});<br/></code></pre><br/><br/>Note: old code is supported with arguments : (container, template, config)
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.JsonView';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.JsonView.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.JsonView-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.View-cfg-dataName" name=".dataName"></a>
133 <div class="fixedFont">
134 <b class="itemname">dataName</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
140 <div class="short">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
145 the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"
155 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
161 <tr class="config-row expandable config-row-alt1">
162 <td class="micon"><a class="exi" href="#expand"> </a></td>
165 <a id="Roo.View-cfg-el" name=".el"></a>
166 <div class="fixedFont">
167 <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>
173 <div class="short">The container element.</div>
178 The container element.
188 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
194 <tr class="config-row expandable config-row-alt0">
195 <td class="micon"><a class="exi" href="#expand"> </a></td>
198 <a id="Roo.View-cfg-emptyText" name=".emptyText"></a>
199 <div class="fixedFont">
200 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
206 <div class="short">The empty text to show when nothing is loaded.</div>
211 The empty text to show when nothing is loaded.
221 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
227 <tr class="config-row expandable config-row-alt1">
228 <td class="micon"><a class="exi" href="#expand"> </a></td>
231 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
232 <div class="fixedFont">
233 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
239 <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>
244 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>
254 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
260 <tr class="config-row expandable config-row-alt0">
261 <td class="micon"><a class="exi" href="#expand"> </a></td>
264 <a id="Roo.View-cfg-multiSelect" name=".multiSelect"></a>
265 <div class="fixedFont">
266 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
272 <div class="short">Allow multiple selection</div>
277 Allow multiple selection
287 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
293 <tr class="config-row expandable config-row-alt1">
294 <td class="micon"><a class="exi" href="#expand"> </a></td>
297 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
298 <div class="fixedFont">
299 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
305 <div class="short">The css class to add to selected nodes</div>
310 The css class to add to selected nodes
320 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
326 <tr class="config-row expandable config-row-alt0">
327 <td class="micon"><a class="exi" href="#expand"> </a></td>
330 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
331 <div class="fixedFont">
332 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
338 <div class="short">Allow single selection</div>
343 Allow single selection
353 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
359 <tr class="config-row expandable config-row-alt1">
360 <td class="micon"><a class="exi" href="#expand"> </a></td>
363 <a id="Roo.View-cfg-store" name=".store"></a>
364 <div class="fixedFont">
365 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
371 <div class="short">Data store to load data from.</div>
376 Data store to load data from.
386 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
392 <tr class="config-row expandable config-row-alt0">
393 <td class="micon"><a class="exi" href="#expand"> </a></td>
396 <a id="Roo.View-cfg-text" name=".text"></a>
397 <div class="fixedFont">
398 <b class="itemname">text</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
404 <div class="short">to display on mask (default Loading)</div>
409 to display on mask (default Loading)
419 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
425 <tr class="config-row expandable config-row-alt1">
426 <td class="micon"><a class="exi" href="#expand"> </a></td>
429 <a id="Roo.View-cfg-tickable" name=".tickable"></a>
430 <div class="fixedFont">
431 <b class="itemname">tickable</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
437 <div class="short">- selecting</div>
452 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
458 <tr class="config-row expandable config-row-alt0">
459 <td class="micon"><a class="exi" href="#expand"> </a></td>
462 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
463 <div class="fixedFont">
464 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
470 <div class="short">- selecting</div>
485 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
491 <tr class="config-row expandable config-row-alt1">
492 <td class="micon"><a class="exi" href="#expand"> </a></td>
495 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
496 <div class="fixedFont">
497 <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>
503 <div class="short">The template used by this View</div>
508 The template used by this View
518 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
534 <!-- ============================== public properties ==================== -->
538 <a id="Roo.JsonView-props"></a>
544 <table cellspacing="0" class="member-table">
545 <caption class="Empty">Public Properties - Has None</caption>
551 <!-- ============================== methods summary / details ======================== -->
554 <a id="Roo.JsonView-methods"></a>
555 <!-- constructor?? -->
562 <!-- then dynamics first -->
569 <table cellspacing="0" class="member-table">
570 <caption>Public Methods</caption>
572 <th class="sig-header" colspan="2">Method</th>
573 <th class="msource-header">Defined By</th>
583 <tr class="method-row config-row-alt0 expandable notInherited">
584 <td class="micon"><a class="exi" href="#expand"> </a></td>
588 <a id="Roo-method-JsonView" name=".JsonView"></a>
589 <div class="fixedFont">
590 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
592 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
600 <div class="short">Create a new Roo.JsonView</div>
607 Create a new Roo.JsonView
610 <dl class="detailList">
611 <dt class="heading">Parameters:</dt>
614 <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>
617 <dd>The config object</dd>
641 <tr class="method-row config-row-alt1 expandable">
642 <td class="micon"><a class="exi" href="#expand"> </a></td>
646 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
647 <div class="fixedFont">
648 <span class="attributes"></span><b class="itemname">addEvents</b>
650 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
657 <div class="short">Used to define events on this Observable</div>
663 Used to define events on this Observable
670 <dl class="detailList">
671 <dt class="heading">Parameters:</dt>
674 <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>
677 <dd>The object with the events defined</dd>
697 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
703 <tr class="method-row config-row-alt0 expandable">
704 <td class="micon"><a class="exi" href="#expand"> </a></td>
708 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
709 <div class="fixedFont">
710 <span class="attributes"></span><b class="itemname">addListener</b>
712 (<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>)
719 <div class="short">Appends an event handler to this component</div>
725 Appends an event handler to this component
732 <dl class="detailList">
733 <dt class="heading">Parameters:</dt>
736 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
739 <dd>The type of event to listen for</dd>
742 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
745 <dd>The method the event invokes</dd>
748 <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>
751 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
754 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
757 <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>
777 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
783 <tr class="method-row config-row-alt1 expandable notInherited">
784 <td class="micon"><a class="exi" href="#expand"> </a></td>
788 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
789 <div class="fixedFont">
790 <span class="attributes"></span><b class="itemname">clearFilter</b>
799 <div class="short">Clears the current filter.</div>
805 Clears the current filter.
834 <tr class="method-row config-row-alt0 expandable">
835 <td class="micon"><a class="exi" href="#expand"> </a></td>
839 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
840 <div class="fixedFont">
841 <span class="attributes"></span><b class="itemname">clearSelections</b>
843 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
850 <div class="short">Clear all selections</div>
863 <dl class="detailList">
864 <dt class="heading">Parameters:</dt>
867 <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>
870 <dd>(optional) true to skip firing of the selectionchange event</dd>
890 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
896 <tr class="method-row config-row-alt1 expandable notInherited">
897 <td class="micon"><a class="exi" href="#expand"> </a></td>
901 <a id="Roo.JsonView-method-filter" name=".filter"></a>
902 <div class="fixedFont">
903 <span class="attributes"></span><b class="itemname">filter</b>
905 (<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>)
912 <div class="short">Filter the data by a specific property.</div>
918 Filter the data by a specific property.
925 <dl class="detailList">
926 <dt class="heading">Parameters:</dt>
929 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
932 <dd>A property on your JSON objects</dd>
935 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
938 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
964 <tr class="method-row config-row-alt0 expandable notInherited">
965 <td class="micon"><a class="exi" href="#expand"> </a></td>
969 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
970 <div class="fixedFont">
971 <span class="attributes"></span><b class="itemname">filterBy</b>
973 (<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>)
980 <div class="short">Filter by a function.</div>
986 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.
993 <dl class="detailList">
994 <dt class="heading">Parameters:</dt>
997 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1003 <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>
1006 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
1024 <td class="msource">
1032 <tr class="method-row config-row-alt1 expandable">
1033 <td class="micon"><a class="exi" href="#expand"> </a></td>
1037 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
1038 <div class="fixedFont">
1039 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
1041 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
1047 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1056 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
1062 Returns the template node the passed child belongs to or null if it doesn't belong to one.
1069 <dl class="detailList">
1070 <dt class="heading">Parameters:</dt>
1073 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
1084 <dl class="detailList">
1085 <dt class="heading">Returns:</dt>
1087 <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>
1101 <td class="msource">
1103 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1109 <tr class="method-row config-row-alt0 expandable">
1110 <td class="micon"><a class="exi" href="#expand"> </a></td>
1114 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1115 <div class="fixedFont">
1116 <span class="attributes"></span><b class="itemname">fireEvent</b>
1118 (<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>)
1124 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1133 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1139 Fires the specified event with the passed parameters (minus the event name).
1146 <dl class="detailList">
1147 <dt class="heading">Parameters:</dt>
1150 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1156 <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>
1159 <dd>Variable number of parameters are passed to handlers</dd>
1167 <dl class="detailList">
1168 <dt class="heading">Returns:</dt>
1170 <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>
1184 <td class="msource">
1186 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1192 <tr class="method-row config-row-alt1 expandable notInherited">
1193 <td class="micon"><a class="exi" href="#expand"> </a></td>
1197 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
1198 <div class="fixedFont">
1199 <span class="attributes"></span><b class="itemname">getCount</b>
1207 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1216 <div class="short">Get the number of records in the current JSON dataset</div>
1222 Get the number of records in the current JSON dataset
1233 <dl class="detailList">
1234 <dt class="heading">Returns:</dt>
1236 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1250 <td class="msource">
1258 <tr class="method-row config-row-alt0 expandable">
1259 <td class="micon"><a class="exi" href="#expand"> </a></td>
1263 <a id="Roo.View-method-getEl" name=".getEl"></a>
1264 <div class="fixedFont">
1265 <span class="attributes"></span><b class="itemname">getEl</b>
1273 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1282 <div class="short">Returns the element this view is bound to.</div>
1288 Returns the element this view is bound to.
1299 <dl class="detailList">
1300 <dt class="heading">Returns:</dt>
1302 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1316 <td class="msource">
1318 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1324 <tr class="method-row config-row-alt1 expandable">
1325 <td class="micon"><a class="exi" href="#expand"> </a></td>
1329 <a id="Roo.View-method-getNode" name=".getNode"></a>
1330 <div class="fixedFont">
1331 <span class="attributes"></span><b class="itemname">getNode</b>
1333 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1339 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1348 <div class="short">Gets a template node.</div>
1354 Gets a template node.
1361 <dl class="detailList">
1362 <dt class="heading">Parameters:</dt>
1365 <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>
1368 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1376 <dl class="detailList">
1377 <dt class="heading">Returns:</dt>
1379 <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>
1393 <td class="msource">
1395 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1401 <tr class="method-row config-row-alt0 expandable notInherited">
1402 <td class="micon"><a class="exi" href="#expand"> </a></td>
1406 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1407 <div class="fixedFont">
1408 <span class="attributes"></span><b class="itemname">getNodeData</b>
1410 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1416 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1425 <div class="short">Returns the JSON object for the specified node(s)</div>
1431 Returns the JSON object for the specified node(s)
1438 <dl class="detailList">
1439 <dt class="heading">Parameters:</dt>
1442 <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>
1445 <dd>The node or an array of nodes</dd>
1453 <dl class="detailList">
1454 <dt class="heading">Returns:</dt>
1456 <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>
1470 <td class="msource">
1478 <tr class="method-row config-row-alt1 expandable">
1479 <td class="micon"><a class="exi" href="#expand"> </a></td>
1483 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1484 <div class="fixedFont">
1485 <span class="attributes"></span><b class="itemname">getNodes</b>
1487 (<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>)
1493 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1502 <div class="short">Gets a range template nodes.</div>
1508 Gets a range template nodes.
1515 <dl class="detailList">
1516 <dt class="heading">Parameters:</dt>
1519 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1525 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1536 <dl class="detailList">
1537 <dt class="heading">Returns:</dt>
1539 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1553 <td class="msource">
1555 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1561 <tr class="method-row config-row-alt0 expandable">
1562 <td class="micon"><a class="exi" href="#expand"> </a></td>
1566 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1567 <div class="fixedFont">
1568 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1576 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1585 <div class="short">Get the indexes of the selected nodes.</div>
1591 Get the indexes of the selected nodes.
1602 <dl class="detailList">
1603 <dt class="heading">Returns:</dt>
1605 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1619 <td class="msource">
1621 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1627 <tr class="method-row config-row-alt1 expandable">
1628 <td class="micon"><a class="exi" href="#expand"> </a></td>
1632 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1633 <div class="fixedFont">
1634 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1642 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1651 <div class="short">Get the currently selected nodes.</div>
1657 Get the currently selected nodes.
1668 <dl class="detailList">
1669 <dt class="heading">Returns:</dt>
1671 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1685 <td class="msource">
1687 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1693 <tr class="method-row config-row-alt0 expandable">
1694 <td class="micon"><a class="exi" href="#expand"> </a></td>
1698 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1699 <div class="fixedFont">
1700 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1708 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1717 <div class="short">Get the number of selected nodes.</div>
1723 Get the number of selected nodes.
1734 <dl class="detailList">
1735 <dt class="heading">Returns:</dt>
1737 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1751 <td class="msource">
1753 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1759 <tr class="method-row config-row-alt1 expandable">
1760 <td class="micon"><a class="exi" href="#expand"> </a></td>
1764 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1765 <div class="fixedFont">
1766 <span class="attributes"></span><b class="itemname">hasListener</b>
1768 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1774 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1783 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1789 Checks to see if this object has any listeners for a specified event
1796 <dl class="detailList">
1797 <dt class="heading">Parameters:</dt>
1800 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1803 <dd>The name of the event to check for</dd>
1811 <dl class="detailList">
1812 <dt class="heading">Returns:</dt>
1814 <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>
1828 <td class="msource">
1830 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1836 <tr class="method-row config-row-alt0 expandable">
1837 <td class="micon"><a class="exi" href="#expand"> </a></td>
1841 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1842 <div class="fixedFont">
1843 <span class="attributes"></span><b class="itemname">indexOf</b>
1845 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1851 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1860 <div class="short">Finds the index of the passed node</div>
1866 Finds the index of the passed node
1873 <dl class="detailList">
1874 <dt class="heading">Parameters:</dt>
1877 <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>
1880 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1888 <dl class="detailList">
1889 <dt class="heading">Returns:</dt>
1891 <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>
1905 <td class="msource">
1907 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1913 <tr class="method-row config-row-alt1 expandable">
1914 <td class="micon"><a class="exi" href="#expand"> </a></td>
1918 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1919 <div class="fixedFont">
1920 <span class="attributes"></span><b class="itemname">isSelected</b>
1922 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1928 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1937 <div class="short">Returns true if the passed node is selected</div>
1943 Returns true if the passed node is selected
1950 <dl class="detailList">
1951 <dt class="heading">Parameters:</dt>
1954 <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>
1957 <dd>The node or node index</dd>
1965 <dl class="detailList">
1966 <dt class="heading">Returns:</dt>
1968 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1982 <td class="msource">
1984 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1990 <tr class="method-row config-row-alt0 expandable notInherited">
1991 <td class="micon"><a class="exi" href="#expand"> </a></td>
1995 <a id="Roo.JsonView-method-load" name=".load"></a>
1996 <div class="fixedFont">
1997 <span class="attributes"></span><b class="itemname">load</b>
1999 (<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>)
2006 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
2012 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.
2019 <dl class="detailList">
2020 <dt class="heading">Parameters:</dt>
2023 <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>
2026 <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>
2029 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
2032 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
2035 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
2038 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
2041 <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>
2044 <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>
2062 <td class="msource">
2070 <tr class="method-row config-row-alt1 expandable">
2071 <td class="micon"><a class="exi" href="#expand"> </a></td>
2075 <a id="Roo.util.Observable-method-on" name=".on"></a>
2076 <div class="fixedFont">
2077 <span class="attributes"></span><b class="itemname">on</b>
2079 (<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>)
2086 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2092 Appends an event handler to this element (shorthand for addListener)
2099 <dl class="detailList">
2100 <dt class="heading">Parameters:</dt>
2103 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2106 <dd>The type of event to listen for</dd>
2109 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2112 <dd>The method the event invokes</dd>
2115 <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>
2118 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2121 <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>
2142 <td class="msource">
2144 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2150 <tr class="method-row config-row-alt0 expandable">
2151 <td class="micon"><a class="exi" href="#expand"> </a></td>
2155 <a id="Roo.View-method-onBeforeLoad" name=".onBeforeLoad"></a>
2156 <div class="fixedFont">
2157 <span class="attributes"></span><b class="itemname">onBeforeLoad</b>
2166 <div class="short">onbeforeLoad - masks the loading area.</div>
2172 onbeforeLoad - masks the loading area.
2193 <td class="msource">
2195 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2201 <tr class="method-row config-row-alt1 expandable">
2202 <td class="micon"><a class="exi" href="#expand"> </a></td>
2206 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
2207 <div class="fixedFont">
2208 <span class="attributes"></span><b class="itemname">prepareData</b>
2210 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
2217 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
2223 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
2230 <dl class="detailList">
2231 <dt class="heading">Parameters:</dt>
2234 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
2237 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
2255 <td class="msource">
2257 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2263 <tr class="method-row config-row-alt0 expandable">
2264 <td class="micon"><a class="exi" href="#expand"> </a></td>
2268 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2269 <div class="fixedFont">
2270 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2279 <div class="short">Removes all listeners for this object</div>
2285 Removes all listeners for this object
2306 <td class="msource">
2308 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2314 <tr class="method-row config-row-alt1 expandable notInherited">
2315 <td class="micon"><a class="exi" href="#expand"> </a></td>
2319 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2320 <div class="fixedFont">
2321 <span class="attributes"></span><b class="itemname">refresh</b>
2330 <div class="short">Refreshes the view.</div>
2357 <td class="msource">
2365 <tr class="method-row config-row-alt0 expandable">
2366 <td class="micon"><a class="exi" href="#expand"> </a></td>
2370 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2371 <div class="fixedFont">
2372 <span class="attributes"></span><b class="itemname">refreshNode</b>
2374 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2381 <div class="short">Refresh an individual node.</div>
2387 Refresh an individual node.
2394 <dl class="detailList">
2395 <dt class="heading">Parameters:</dt>
2398 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2419 <td class="msource">
2421 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2427 <tr class="method-row config-row-alt1 expandable">
2428 <td class="micon"><a class="exi" href="#expand"> </a></td>
2432 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2433 <div class="fixedFont">
2434 <span class="attributes"></span><b class="itemname">removeListener</b>
2436 (<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>)
2443 <div class="short">Removes a listener</div>
2456 <dl class="detailList">
2457 <dt class="heading">Parameters:</dt>
2460 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2463 <dd>The type of event to listen for</dd>
2466 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2469 <dd>The handler to remove</dd>
2472 <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>
2475 <dd>(optional) The scope (this object) for the handler</dd>
2493 <td class="msource">
2495 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2501 <tr class="method-row config-row-alt0 expandable">
2502 <td class="micon"><a class="exi" href="#expand"> </a></td>
2506 <a id="Roo.View-method-select" name=".select"></a>
2507 <div class="fixedFont">
2508 <span class="attributes"></span><b class="itemname">select</b>
2510 (<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>)
2517 <div class="short">Selects nodes.</div>
2530 <dl class="detailList">
2531 <dt class="heading">Parameters:</dt>
2534 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2537 <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>
2540 <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>
2543 <dd>(optional) true to keep existing selections</dd>
2546 <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>
2549 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2567 <td class="msource">
2569 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2575 <tr class="method-row config-row-alt1 expandable">
2576 <td class="micon"><a class="exi" href="#expand"> </a></td>
2580 <a id="Roo.View-method-setStore" name=".setStore"></a>
2581 <div class="fixedFont">
2582 <span class="attributes"></span><b class="itemname">setStore</b>
2584 (Store <B><i>store</i></B>)
2591 <div class="short">Changes the data store this view uses and refresh the view.</div>
2597 Changes the data store this view uses and refresh the view.
2604 <dl class="detailList">
2605 <dt class="heading">Parameters:</dt>
2608 <span class="fixedFont">Store</span> <b>store</b>
2629 <td class="msource">
2631 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2637 <tr class="method-row config-row-alt0 expandable notInherited">
2638 <td class="micon"><a class="exi" href="#expand"> </a></td>
2642 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2643 <div class="fixedFont">
2644 <span class="attributes"></span><b class="itemname">sort</b>
2646 (<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>)
2653 <div class="short">Sorts the data for this view and refreshes it.</div>
2659 Sorts the data for this view and refreshes it.
2666 <dl class="detailList">
2667 <dt class="heading">Parameters:</dt>
2670 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2673 <dd>A property on your JSON objects to sort on</dd>
2676 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2679 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2682 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2685 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2703 <td class="msource">
2711 <tr class="method-row config-row-alt1 expandable">
2712 <td class="micon"><a class="exi" href="#expand"> </a></td>
2716 <a id="Roo.util.Observable-method-un" name=".un"></a>
2717 <div class="fixedFont">
2718 <span class="attributes"></span><b class="itemname">un</b>
2720 (<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>)
2727 <div class="short">Removes a listener (shorthand for removeListener)</div>
2733 Removes a listener (shorthand for removeListener)
2740 <dl class="detailList">
2741 <dt class="heading">Parameters:</dt>
2744 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2747 <dd>The type of event to listen for</dd>
2750 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2753 <dd>The handler to remove</dd>
2756 <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>
2759 <dd>(optional) The scope (this object) for the handler</dd>
2777 <td class="msource">
2779 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2785 <tr class="method-row config-row-alt0 expandable">
2786 <td class="micon"><a class="exi" href="#expand"> </a></td>
2790 <a id="Roo.View-method-unselect" name=".unselect"></a>
2791 <div class="fixedFont">
2792 <span class="attributes"></span><b class="itemname">unselect</b>
2794 (<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>)
2801 <div class="short">Unselects nodes.</div>
2814 <dl class="detailList">
2815 <dt class="heading">Parameters:</dt>
2818 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2821 <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>
2824 <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>
2827 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2830 <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>
2833 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2851 <td class="msource">
2853 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2862 <!-- ============================== events summary / details ======================== -->
2865 <a id="Roo.JsonView-events"></a>
2874 <table cellspacing="0" class="member-table">
2875 <caption>Events</caption>
2878 <th class="sig-header" colspan="2">Event</th>
2879 <th class="msource-header">Defined By</th>
2888 <tr class="method-row expandable config-row-alt0">
2889 <td class="micon"><a class="exi" href="#expand"> </a></td>
2892 <a id="Roo.View-event-*beforeclick"></a>
2894 <div class="fixedFont">
2895 <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>)
2901 <div class="short">Fires before a click is processed.
2907 Fires before a click is processed. Returns false to cancel the default action.
2913 <dl class="detailList">
2914 <dt class="heading">Parameters:</dt>
2917 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2923 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2926 <dd>The index of the target node</dd>
2929 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2932 <dd>The target node</dd>
2935 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2938 <dd>The raw event object</dd>
2956 <td class="msource">
2957 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2961 <tr class="method-row expandable config-row-alt1 notInherited">
2962 <td class="micon"><a class="exi" href="#expand"> </a></td>
2965 <a id="Roo.JsonView-event-*beforerender"></a>
2967 <div class="fixedFont">
2968 <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>)
2974 <div class="short">Fires before rendering of the downloaded JSON data.
2980 Fires before rendering of the downloaded JSON data.
2986 <dl class="detailList">
2987 <dt class="heading">Parameters:</dt>
2990 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2996 <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>
2999 <dd>The JSON data loaded</dd>
3017 <td class="msource">
3022 <tr class="method-row expandable config-row-alt0">
3023 <td class="micon"><a class="exi" href="#expand"> </a></td>
3026 <a id="Roo.View-event-*beforeselect"></a>
3028 <div class="fixedFont">
3029 <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>)
3035 <div class="short">Fires before a selection is made.
3041 Fires before a selection is made. If any handlers return false, the selection is cancelled.
3047 <dl class="detailList">
3048 <dt class="heading">Parameters:</dt>
3051 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3057 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3060 <dd>The node to be selected</dd>
3063 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3066 <dd>Array of currently selected nodes</dd>
3084 <td class="msource">
3085 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3089 <tr class="method-row expandable config-row-alt1">
3090 <td class="micon"><a class="exi" href="#expand"> </a></td>
3093 <a id="Roo.View-event-*click"></a>
3095 <div class="fixedFont">
3096 <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>)
3102 <div class="short">Fires when a template node is clicked.
3108 Fires when a template node is clicked.
3114 <dl class="detailList">
3115 <dt class="heading">Parameters:</dt>
3118 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3124 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3127 <dd>The index of the target node</dd>
3130 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3133 <dd>The target node</dd>
3136 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3139 <dd>The raw event object</dd>
3157 <td class="msource">
3158 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3162 <tr class="method-row expandable config-row-alt0">
3163 <td class="micon"><a class="exi" href="#expand"> </a></td>
3166 <a id="Roo.View-event-*contextmenu"></a>
3168 <div class="fixedFont">
3169 <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>)
3175 <div class="short">Fires when a template node is right clicked.
3181 Fires when a template node is right clicked.
3187 <dl class="detailList">
3188 <dt class="heading">Parameters:</dt>
3191 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3197 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3200 <dd>The index of the target node</dd>
3203 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3206 <dd>The target node</dd>
3209 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3212 <dd>The raw event object</dd>
3230 <td class="msource">
3231 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3235 <tr class="method-row expandable config-row-alt1">
3236 <td class="micon"><a class="exi" href="#expand"> </a></td>
3239 <a id="Roo.View-event-*dblclick"></a>
3241 <div class="fixedFont">
3242 <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>)
3248 <div class="short">Fires when a template node is double clicked.
3254 Fires when a template node is double clicked.
3260 <dl class="detailList">
3261 <dt class="heading">Parameters:</dt>
3264 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3270 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3273 <dd>The index of the target node</dd>
3276 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3279 <dd>The target node</dd>
3282 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3285 <dd>The raw event object</dd>
3303 <td class="msource">
3304 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3308 <tr class="method-row expandable config-row-alt0 notInherited">
3309 <td class="micon"><a class="exi" href="#expand"> </a></td>
3312 <a id="Roo.JsonView-event-*load"></a>
3314 <div class="fixedFont">
3315 <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>)
3321 <div class="short">Fires when data is loaded.
3327 Fires when data is loaded.
3333 <dl class="detailList">
3334 <dt class="heading">Parameters:</dt>
3337 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3343 <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>
3346 <dd>The JSON data loaded</dd>
3349 <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>
3352 <dd>The raw Connect response object</dd>
3370 <td class="msource">
3375 <tr class="method-row expandable config-row-alt1 notInherited">
3376 <td class="micon"><a class="exi" href="#expand"> </a></td>
3379 <a id="Roo.JsonView-event-*loadexception"></a>
3381 <div class="fixedFont">
3382 <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>)
3388 <div class="short">Fires when loading fails.
3394 Fires when loading fails.
3400 <dl class="detailList">
3401 <dt class="heading">Parameters:</dt>
3404 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3410 <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>
3413 <dd>The raw Connect response object</dd>
3431 <td class="msource">
3436 <tr class="method-row expandable config-row-alt0">
3437 <td class="micon"><a class="exi" href="#expand"> </a></td>
3440 <a id="Roo.View-event-*preparedata"></a>
3442 <div class="fixedFont">
3443 <b class="itemname">preparedata</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>)
3449 <div class="short">Fires on every row to render, to allow you to change the data.
3455 Fires on every row to render, to allow you to change the data.
3461 <dl class="detailList">
3462 <dt class="heading">Parameters:</dt>
3465 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3471 <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>
3474 <dd>to be rendered (change this)</dd>
3492 <td class="msource">
3493 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3497 <tr class="method-row expandable config-row-alt1">
3498 <td class="micon"><a class="exi" href="#expand"> </a></td>
3501 <a id="Roo.View-event-*selectionchange"></a>
3503 <div class="fixedFont">
3504 <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>)
3510 <div class="short">Fires when the selected nodes change.
3516 Fires when the selected nodes change.
3522 <dl class="detailList">
3523 <dt class="heading">Parameters:</dt>
3526 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3532 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3535 <dd>Array of the selected nodes</dd>
3553 <td class="msource">
3554 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3565 <!-- ============================== footer ================================= -->
3566 <div class="fineprint" style="clear:both">
3568 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Jul 13 2018 14:10:53 GMT+0800 (HKT)
3570 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>