1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.JsonView</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.JsonView-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.JsonView-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.JsonView-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.JsonView-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.JsonView
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_JsonView.js.html">Roo/JsonView.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">JsonView</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Shortcut class to create a JSON + {<b>link</b> Roo.UpdateManager} template view. Usage:<br/><pre><code><br/>var view = new Roo.JsonView({<br/> container: "my-element",<br/> tpl: '<div id="{id}">{foo} - {bar}</div>', // auto create template<br/> multiSelect: true, <br/> jsonRoot: "data" <br/>});<br/><br/>// listen for node click?<br/>view.on("click", function(vw, index, node, e){<br/> alert('Node "' + node.id + '" at index: ' + index + " was clicked.");<br/>});<br/><br/>// direct load of JSON data<br/>view.load("foobar.php");<br/><br/>// Example from my blog list<br/>var tpl = new Roo.Template(<br/> '<div class="entry">' +<br/> '<a class="entry-title" href="{link}">{title}</a>' +<br/> "<h4>{date} by {author} | {comments} Comments</h4>{description}" +<br/> "</div><hr />"<br/>);<br/><br/>var moreView = new Roo.JsonView({<br/> container : "entry-list", <br/> template : tpl,<br/> jsonRoot: "posts"<br/>});<br/>moreView.on("beforerender", this.sortEntries, this);<br/>moreView.load({<br/> url: "/blog/get-posts.php",<br/> params: "allposts=true",<br/> text: "Loading Blog Entries..."<br/>});<br/></code></pre><br/><br/>Note: old code is supported with arguments : (container, template, config)
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.JsonView';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.JsonView.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.JsonView-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.View-cfg-dataName" name=".dataName"></a>
133 <div class="fixedFont">
134 <b class="itemname">dataName</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
140 <div class="short">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
144 <div class="long">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
152 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
158 <tr class="config-row expandable config-row-alt1">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.View-cfg-el" name=".el"></a>
163 <div class="fixedFont">
164 <b class="itemname">el</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|<a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
170 <div class="short">The container element.</div>
174 <div class="long">The container element.</div>
182 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
188 <tr class="config-row expandable config-row-alt0">
189 <td class="micon"><a class="exi" href="#expand"> </a></td>
192 <a id="Roo.View-cfg-emptyText" name=".emptyText"></a>
193 <div class="fixedFont">
194 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
200 <div class="short">The empty text to show when nothing is loaded.</div>
204 <div class="long">The empty text to show when nothing is loaded.</div>
212 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
218 <tr class="config-row expandable config-row-alt1">
219 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
223 <div class="fixedFont">
224 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
230 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
234 <div class="long">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre></div>
242 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
248 <tr class="config-row expandable config-row-alt0">
249 <td class="micon"><a class="exi" href="#expand"> </a></td>
252 <a id="Roo.View-cfg-multiSelect" name=".multiSelect"></a>
253 <div class="fixedFont">
254 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
260 <div class="short">Allow multiple selection</div>
264 <div class="long">Allow multiple selection</div>
272 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
278 <tr class="config-row expandable config-row-alt1">
279 <td class="micon"><a class="exi" href="#expand"> </a></td>
282 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
283 <div class="fixedFont">
284 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
290 <div class="short">The css class to add to selected nodes</div>
294 <div class="long">The css class to add to selected nodes</div>
302 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
308 <tr class="config-row expandable config-row-alt0">
309 <td class="micon"><a class="exi" href="#expand"> </a></td>
312 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
313 <div class="fixedFont">
314 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
320 <div class="short">Allow single selection</div>
324 <div class="long">Allow single selection</div>
332 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
338 <tr class="config-row expandable config-row-alt1">
339 <td class="micon"><a class="exi" href="#expand"> </a></td>
342 <a id="Roo.View-cfg-store" name=".store"></a>
343 <div class="fixedFont">
344 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
350 <div class="short">Data store to load data from.</div>
354 <div class="long">Data store to load data from.</div>
362 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
368 <tr class="config-row expandable config-row-alt0">
369 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo.View-cfg-text" name=".text"></a>
373 <div class="fixedFont">
374 <b class="itemname">text</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
380 <div class="short">to display on mask (default Loading)</div>
384 <div class="long">to display on mask (default Loading)</div>
392 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
398 <tr class="config-row expandable config-row-alt1">
399 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
403 <div class="fixedFont">
404 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
410 <div class="short">- selecting</div>
414 <div class="long">- selecting</div>
422 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
428 <tr class="config-row expandable config-row-alt0">
429 <td class="micon"><a class="exi" href="#expand"> </a></td>
432 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
433 <div class="fixedFont">
434 <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>
440 <div class="short">The template used by this View</div>
444 <div class="long">The template used by this View</div>
452 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
468 <!-- ============================== public properties ==================== -->
472 <a id="Roo.JsonView-props"></a>
478 <table cellspacing="0" class="member-table">
479 <caption class="Empty">Public Properties - Has None</caption>
485 <!-- ============================== methods summary / details ======================== -->
488 <a id="Roo.JsonView-methods"></a>
489 <!-- constructor?? -->
496 <!-- then dynamics first -->
503 <table cellspacing="0" class="member-table">
504 <caption>Public Methods</caption>
506 <th class="sig-header" colspan="2">Method</th>
507 <th class="msource-header">Defined By</th>
517 <tr class="method-row config-row-alt0 expandable notInherited">
518 <td class="micon"><a class="exi" href="#expand"> </a></td>
522 <a id="Roo-method-JsonView" name=".JsonView"></a>
523 <div class="fixedFont">
524 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
526 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
534 <div class="short">Create a new Roo.JsonView</div>
541 Create a new Roo.JsonView
544 <dl class="detailList">
545 <dt class="heading">Parameters:</dt>
548 <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>
551 <dd>The config object</dd>
575 <tr class="method-row config-row-alt1 expandable">
576 <td class="micon"><a class="exi" href="#expand"> </a></td>
580 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
581 <div class="fixedFont">
582 <span class="attributes"></span><b class="itemname">addEvents</b>
584 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
591 <div class="short">Used to define events on this Observable</div>
597 Used to define events on this Observable
604 <dl class="detailList">
605 <dt class="heading">Parameters:</dt>
608 <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>
611 <dd>The object with the events defined</dd>
631 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
637 <tr class="method-row config-row-alt0 expandable">
638 <td class="micon"><a class="exi" href="#expand"> </a></td>
642 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
643 <div class="fixedFont">
644 <span class="attributes"></span><b class="itemname">addListener</b>
646 (<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>)
653 <div class="short">Appends an event handler to this component</div>
659 Appends an event handler to this component
666 <dl class="detailList">
667 <dt class="heading">Parameters:</dt>
670 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
673 <dd>The type of event to listen for</dd>
676 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
679 <dd>The method the event invokes</dd>
682 <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>
685 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
688 <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>
691 <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>
711 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
717 <tr class="method-row config-row-alt1 expandable notInherited">
718 <td class="micon"><a class="exi" href="#expand"> </a></td>
722 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
723 <div class="fixedFont">
724 <span class="attributes"></span><b class="itemname">clearFilter</b>
733 <div class="short">Clears the current filter.</div>
739 Clears the current filter.
768 <tr class="method-row config-row-alt0 expandable">
769 <td class="micon"><a class="exi" href="#expand"> </a></td>
773 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
774 <div class="fixedFont">
775 <span class="attributes"></span><b class="itemname">clearSelections</b>
777 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
784 <div class="short">Clear all selections</div>
797 <dl class="detailList">
798 <dt class="heading">Parameters:</dt>
801 <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>
804 <dd>(optional) true to skip firing of the selectionchange event</dd>
824 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
830 <tr class="method-row config-row-alt1 expandable notInherited">
831 <td class="micon"><a class="exi" href="#expand"> </a></td>
835 <a id="Roo.JsonView-method-filter" name=".filter"></a>
836 <div class="fixedFont">
837 <span class="attributes"></span><b class="itemname">filter</b>
839 (<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>)
846 <div class="short">Filter the data by a specific property.</div>
852 Filter the data by a specific property.
859 <dl class="detailList">
860 <dt class="heading">Parameters:</dt>
863 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
866 <dd>A property on your JSON objects</dd>
869 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
872 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
898 <tr class="method-row config-row-alt0 expandable notInherited">
899 <td class="micon"><a class="exi" href="#expand"> </a></td>
903 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
904 <div class="fixedFont">
905 <span class="attributes"></span><b class="itemname">filterBy</b>
907 (<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>)
914 <div class="short">Filter by a function.</div>
920 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.
927 <dl class="detailList">
928 <dt class="heading">Parameters:</dt>
931 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
937 <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>
940 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
966 <tr class="method-row config-row-alt1 expandable">
967 <td class="micon"><a class="exi" href="#expand"> </a></td>
971 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
972 <div class="fixedFont">
973 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
975 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
981 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
990 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
996 Returns the template node the passed child belongs to or null if it doesn't belong to one.
1003 <dl class="detailList">
1004 <dt class="heading">Parameters:</dt>
1007 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
1018 <dl class="detailList">
1019 <dt class="heading">Returns:</dt>
1021 <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>
1035 <td class="msource">
1037 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1043 <tr class="method-row config-row-alt0 expandable">
1044 <td class="micon"><a class="exi" href="#expand"> </a></td>
1048 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1049 <div class="fixedFont">
1050 <span class="attributes"></span><b class="itemname">fireEvent</b>
1052 (<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>)
1058 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1067 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1073 Fires the specified event with the passed parameters (minus the event name).
1080 <dl class="detailList">
1081 <dt class="heading">Parameters:</dt>
1084 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1090 <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>
1093 <dd>Variable number of parameters are passed to handlers</dd>
1101 <dl class="detailList">
1102 <dt class="heading">Returns:</dt>
1104 <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>
1118 <td class="msource">
1120 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1126 <tr class="method-row config-row-alt1 expandable notInherited">
1127 <td class="micon"><a class="exi" href="#expand"> </a></td>
1131 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
1132 <div class="fixedFont">
1133 <span class="attributes"></span><b class="itemname">getCount</b>
1141 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1150 <div class="short">Get the number of records in the current JSON dataset</div>
1156 Get the number of records in the current JSON dataset
1167 <dl class="detailList">
1168 <dt class="heading">Returns:</dt>
1170 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1184 <td class="msource">
1192 <tr class="method-row config-row-alt0 expandable">
1193 <td class="micon"><a class="exi" href="#expand"> </a></td>
1197 <a id="Roo.View-method-getEl" name=".getEl"></a>
1198 <div class="fixedFont">
1199 <span class="attributes"></span><b class="itemname">getEl</b>
1207 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1216 <div class="short">Returns the element this view is bound to.</div>
1222 Returns the element this view is bound to.
1233 <dl class="detailList">
1234 <dt class="heading">Returns:</dt>
1236 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1250 <td class="msource">
1252 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1258 <tr class="method-row config-row-alt1 expandable">
1259 <td class="micon"><a class="exi" href="#expand"> </a></td>
1263 <a id="Roo.View-method-getNode" name=".getNode"></a>
1264 <div class="fixedFont">
1265 <span class="attributes"></span><b class="itemname">getNode</b>
1267 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1273 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1282 <div class="short">Gets a template node.</div>
1288 Gets a template node.
1295 <dl class="detailList">
1296 <dt class="heading">Parameters:</dt>
1299 <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>
1302 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1310 <dl class="detailList">
1311 <dt class="heading">Returns:</dt>
1313 <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>
1327 <td class="msource">
1329 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1335 <tr class="method-row config-row-alt0 expandable notInherited">
1336 <td class="micon"><a class="exi" href="#expand"> </a></td>
1340 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1341 <div class="fixedFont">
1342 <span class="attributes"></span><b class="itemname">getNodeData</b>
1344 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1350 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1359 <div class="short">Returns the JSON object for the specified node(s)</div>
1365 Returns the JSON object for the specified node(s)
1372 <dl class="detailList">
1373 <dt class="heading">Parameters:</dt>
1376 <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>
1379 <dd>The node or an array of nodes</dd>
1387 <dl class="detailList">
1388 <dt class="heading">Returns:</dt>
1390 <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>
1404 <td class="msource">
1412 <tr class="method-row config-row-alt1 expandable">
1413 <td class="micon"><a class="exi" href="#expand"> </a></td>
1417 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1418 <div class="fixedFont">
1419 <span class="attributes"></span><b class="itemname">getNodes</b>
1421 (<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>)
1427 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1436 <div class="short">Gets a range template nodes.</div>
1442 Gets a range template nodes.
1449 <dl class="detailList">
1450 <dt class="heading">Parameters:</dt>
1453 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1459 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1470 <dl class="detailList">
1471 <dt class="heading">Returns:</dt>
1473 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1487 <td class="msource">
1489 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1495 <tr class="method-row config-row-alt0 expandable">
1496 <td class="micon"><a class="exi" href="#expand"> </a></td>
1500 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1501 <div class="fixedFont">
1502 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1510 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1519 <div class="short">Get the indexes of the selected nodes.</div>
1525 Get the indexes of the selected nodes.
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> </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-alt1 expandable">
1562 <td class="micon"><a class="exi" href="#expand"> </a></td>
1566 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1567 <div class="fixedFont">
1568 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1576 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1585 <div class="short">Get the currently selected nodes.</div>
1591 Get the currently 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> An array of HTMLElements</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-alt0 expandable">
1628 <td class="micon"><a class="exi" href="#expand"> </a></td>
1632 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1633 <div class="fixedFont">
1634 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1642 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1651 <div class="short">Get the number of selected nodes.</div>
1657 Get the number of selected nodes.
1668 <dl class="detailList">
1669 <dt class="heading">Returns:</dt>
1671 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </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-alt1 expandable">
1694 <td class="micon"><a class="exi" href="#expand"> </a></td>
1698 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1699 <div class="fixedFont">
1700 <span class="attributes"></span><b class="itemname">hasListener</b>
1702 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1708 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1717 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1723 Checks to see if this object has any listeners for a specified event
1730 <dl class="detailList">
1731 <dt class="heading">Parameters:</dt>
1734 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1737 <dd>The name of the event to check for</dd>
1745 <dl class="detailList">
1746 <dt class="heading">Returns:</dt>
1748 <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>
1762 <td class="msource">
1764 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1770 <tr class="method-row config-row-alt0 expandable">
1771 <td class="micon"><a class="exi" href="#expand"> </a></td>
1775 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1776 <div class="fixedFont">
1777 <span class="attributes"></span><b class="itemname">indexOf</b>
1779 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1785 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1794 <div class="short">Finds the index of the passed node</div>
1800 Finds the index of the passed node
1807 <dl class="detailList">
1808 <dt class="heading">Parameters:</dt>
1811 <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>
1814 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1822 <dl class="detailList">
1823 <dt class="heading">Returns:</dt>
1825 <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>
1839 <td class="msource">
1841 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1847 <tr class="method-row config-row-alt1 expandable">
1848 <td class="micon"><a class="exi" href="#expand"> </a></td>
1852 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1853 <div class="fixedFont">
1854 <span class="attributes"></span><b class="itemname">isSelected</b>
1856 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1862 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1871 <div class="short">Returns true if the passed node is selected</div>
1877 Returns true if the passed node is selected
1884 <dl class="detailList">
1885 <dt class="heading">Parameters:</dt>
1888 <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>
1891 <dd>The node or node index</dd>
1899 <dl class="detailList">
1900 <dt class="heading">Returns:</dt>
1902 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1916 <td class="msource">
1918 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1924 <tr class="method-row config-row-alt0 expandable notInherited">
1925 <td class="micon"><a class="exi" href="#expand"> </a></td>
1929 <a id="Roo.JsonView-method-load" name=".load"></a>
1930 <div class="fixedFont">
1931 <span class="attributes"></span><b class="itemname">load</b>
1933 (<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>)
1940 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1946 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.
1953 <dl class="detailList">
1954 <dt class="heading">Parameters:</dt>
1957 <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>
1960 <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>
1963 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1966 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1969 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1972 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1975 <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>
1978 <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>
1996 <td class="msource">
2004 <tr class="method-row config-row-alt1 expandable">
2005 <td class="micon"><a class="exi" href="#expand"> </a></td>
2009 <a id="Roo.util.Observable-method-on" name=".on"></a>
2010 <div class="fixedFont">
2011 <span class="attributes"></span><b class="itemname">on</b>
2013 (<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>)
2020 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2026 Appends an event handler to this element (shorthand for addListener)
2033 <dl class="detailList">
2034 <dt class="heading">Parameters:</dt>
2037 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2040 <dd>The type of event to listen for</dd>
2043 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2046 <dd>The method the event invokes</dd>
2049 <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>
2052 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2055 <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>
2076 <td class="msource">
2078 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2084 <tr class="method-row config-row-alt0 expandable">
2085 <td class="micon"><a class="exi" href="#expand"> </a></td>
2089 <a id="Roo.View-method-onBeforeLoad" name=".onBeforeLoad"></a>
2090 <div class="fixedFont">
2091 <span class="attributes"></span><b class="itemname">onBeforeLoad</b>
2100 <div class="short">onbeforeLoad - masks the loading area.</div>
2106 onbeforeLoad - masks the loading area.
2127 <td class="msource">
2129 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2135 <tr class="method-row config-row-alt1 expandable">
2136 <td class="micon"><a class="exi" href="#expand"> </a></td>
2140 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
2141 <div class="fixedFont">
2142 <span class="attributes"></span><b class="itemname">prepareData</b>
2144 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
2151 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
2157 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
2164 <dl class="detailList">
2165 <dt class="heading">Parameters:</dt>
2168 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
2171 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
2189 <td class="msource">
2191 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2197 <tr class="method-row config-row-alt0 expandable">
2198 <td class="micon"><a class="exi" href="#expand"> </a></td>
2202 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2203 <div class="fixedFont">
2204 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2213 <div class="short">Removes all listeners for this object</div>
2219 Removes all listeners for this object
2240 <td class="msource">
2242 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2248 <tr class="method-row config-row-alt1 expandable notInherited">
2249 <td class="micon"><a class="exi" href="#expand"> </a></td>
2253 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2254 <div class="fixedFont">
2255 <span class="attributes"></span><b class="itemname">refresh</b>
2264 <div class="short">Refreshes the view.</div>
2291 <td class="msource">
2299 <tr class="method-row config-row-alt0 expandable">
2300 <td class="micon"><a class="exi" href="#expand"> </a></td>
2304 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2305 <div class="fixedFont">
2306 <span class="attributes"></span><b class="itemname">refreshNode</b>
2308 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2315 <div class="short">Refresh an individual node.</div>
2321 Refresh an individual node.
2328 <dl class="detailList">
2329 <dt class="heading">Parameters:</dt>
2332 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2353 <td class="msource">
2355 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2361 <tr class="method-row config-row-alt1 expandable">
2362 <td class="micon"><a class="exi" href="#expand"> </a></td>
2366 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2367 <div class="fixedFont">
2368 <span class="attributes"></span><b class="itemname">removeListener</b>
2370 (<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>)
2377 <div class="short">Removes a listener</div>
2390 <dl class="detailList">
2391 <dt class="heading">Parameters:</dt>
2394 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2397 <dd>The type of event to listen for</dd>
2400 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2403 <dd>The handler to remove</dd>
2406 <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>
2409 <dd>(optional) The scope (this object) for the handler</dd>
2427 <td class="msource">
2429 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2435 <tr class="method-row config-row-alt0 expandable">
2436 <td class="micon"><a class="exi" href="#expand"> </a></td>
2440 <a id="Roo.View-method-select" name=".select"></a>
2441 <div class="fixedFont">
2442 <span class="attributes"></span><b class="itemname">select</b>
2444 (<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>)
2451 <div class="short">Selects nodes.</div>
2464 <dl class="detailList">
2465 <dt class="heading">Parameters:</dt>
2468 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2471 <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>
2474 <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>
2477 <dd>(optional) true to keep existing selections</dd>
2480 <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>
2483 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2501 <td class="msource">
2503 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2509 <tr class="method-row config-row-alt1 expandable">
2510 <td class="micon"><a class="exi" href="#expand"> </a></td>
2514 <a id="Roo.View-method-setStore" name=".setStore"></a>
2515 <div class="fixedFont">
2516 <span class="attributes"></span><b class="itemname">setStore</b>
2518 (Store <B><i>store</i></B>)
2525 <div class="short">Changes the data store this view uses and refresh the view.</div>
2531 Changes the data store this view uses and refresh the view.
2538 <dl class="detailList">
2539 <dt class="heading">Parameters:</dt>
2542 <span class="fixedFont">Store</span> <b>store</b>
2563 <td class="msource">
2565 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2571 <tr class="method-row config-row-alt0 expandable notInherited">
2572 <td class="micon"><a class="exi" href="#expand"> </a></td>
2576 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2577 <div class="fixedFont">
2578 <span class="attributes"></span><b class="itemname">sort</b>
2580 (<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>)
2587 <div class="short">Sorts the data for this view and refreshes it.</div>
2593 Sorts the data for this view and refreshes it.
2600 <dl class="detailList">
2601 <dt class="heading">Parameters:</dt>
2604 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2607 <dd>A property on your JSON objects to sort on</dd>
2610 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2613 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2616 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2619 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2637 <td class="msource">
2645 <tr class="method-row config-row-alt1 expandable">
2646 <td class="micon"><a class="exi" href="#expand"> </a></td>
2650 <a id="Roo.util.Observable-method-un" name=".un"></a>
2651 <div class="fixedFont">
2652 <span class="attributes"></span><b class="itemname">un</b>
2654 (<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>)
2661 <div class="short">Removes a listener (shorthand for removeListener)</div>
2667 Removes a listener (shorthand for removeListener)
2674 <dl class="detailList">
2675 <dt class="heading">Parameters:</dt>
2678 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2681 <dd>The type of event to listen for</dd>
2684 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2687 <dd>The handler to remove</dd>
2690 <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>
2693 <dd>(optional) The scope (this object) for the handler</dd>
2711 <td class="msource">
2713 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2719 <tr class="method-row config-row-alt0 expandable">
2720 <td class="micon"><a class="exi" href="#expand"> </a></td>
2724 <a id="Roo.View-method-unselect" name=".unselect"></a>
2725 <div class="fixedFont">
2726 <span class="attributes"></span><b class="itemname">unselect</b>
2728 (<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>)
2735 <div class="short">Unselects nodes.</div>
2748 <dl class="detailList">
2749 <dt class="heading">Parameters:</dt>
2752 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2755 <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>
2758 <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>
2761 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2764 <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>
2767 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2785 <td class="msource">
2787 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2796 <!-- ============================== events summary / details ======================== -->
2799 <a id="Roo.JsonView-events"></a>
2808 <table cellspacing="0" class="member-table">
2809 <caption>Events</caption>
2812 <th class="sig-header" colspan="2">Event</th>
2813 <th class="msource-header">Defined By</th>
2822 <tr class="method-row expandable config-row-alt0">
2823 <td class="micon"><a class="exi" href="#expand"> </a></td>
2826 <a id="Roo.View-event-*beforeclick"></a>
2828 <div class="fixedFont">
2829 <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>)
2835 <div class="short">Fires before a click is processed.
2841 Fires before a click is processed. Returns false to cancel the default action.
2847 <dl class="detailList">
2848 <dt class="heading">Parameters:</dt>
2851 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2857 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2860 <dd>The index of the target node</dd>
2863 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2866 <dd>The target node</dd>
2869 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2872 <dd>The raw event object</dd>
2890 <td class="msource">
2891 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2895 <tr class="method-row expandable config-row-alt1 notInherited">
2896 <td class="micon"><a class="exi" href="#expand"> </a></td>
2899 <a id="Roo.JsonView-event-*beforerender"></a>
2901 <div class="fixedFont">
2902 <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>)
2908 <div class="short">Fires before rendering of the downloaded JSON data.
2914 Fires before rendering of the downloaded JSON data.
2920 <dl class="detailList">
2921 <dt class="heading">Parameters:</dt>
2924 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2930 <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>
2933 <dd>The JSON data loaded</dd>
2951 <td class="msource">
2956 <tr class="method-row expandable config-row-alt0">
2957 <td class="micon"><a class="exi" href="#expand"> </a></td>
2960 <a id="Roo.View-event-*beforeselect"></a>
2962 <div class="fixedFont">
2963 <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>)
2969 <div class="short">Fires before a selection is made.
2975 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2981 <dl class="detailList">
2982 <dt class="heading">Parameters:</dt>
2985 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2991 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2994 <dd>The node to be selected</dd>
2997 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3000 <dd>Array of currently selected nodes</dd>
3018 <td class="msource">
3019 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3023 <tr class="method-row expandable config-row-alt1">
3024 <td class="micon"><a class="exi" href="#expand"> </a></td>
3027 <a id="Roo.View-event-*click"></a>
3029 <div class="fixedFont">
3030 <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>)
3036 <div class="short">Fires when a template node is clicked.
3042 Fires when a template node is clicked.
3048 <dl class="detailList">
3049 <dt class="heading">Parameters:</dt>
3052 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3058 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3061 <dd>The index of the target node</dd>
3064 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3067 <dd>The target node</dd>
3070 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3073 <dd>The raw event object</dd>
3091 <td class="msource">
3092 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3096 <tr class="method-row expandable config-row-alt0">
3097 <td class="micon"><a class="exi" href="#expand"> </a></td>
3100 <a id="Roo.View-event-*contextmenu"></a>
3102 <div class="fixedFont">
3103 <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>)
3109 <div class="short">Fires when a template node is right clicked.
3115 Fires when a template node is right clicked.
3121 <dl class="detailList">
3122 <dt class="heading">Parameters:</dt>
3125 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3131 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3134 <dd>The index of the target node</dd>
3137 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3140 <dd>The target node</dd>
3143 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3146 <dd>The raw event object</dd>
3164 <td class="msource">
3165 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3169 <tr class="method-row expandable config-row-alt1">
3170 <td class="micon"><a class="exi" href="#expand"> </a></td>
3173 <a id="Roo.View-event-*dblclick"></a>
3175 <div class="fixedFont">
3176 <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>)
3182 <div class="short">Fires when a template node is double clicked.
3188 Fires when a template node is double clicked.
3194 <dl class="detailList">
3195 <dt class="heading">Parameters:</dt>
3198 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3204 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3207 <dd>The index of the target node</dd>
3210 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3213 <dd>The target node</dd>
3216 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3219 <dd>The raw event object</dd>
3237 <td class="msource">
3238 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3242 <tr class="method-row expandable config-row-alt0 notInherited">
3243 <td class="micon"><a class="exi" href="#expand"> </a></td>
3246 <a id="Roo.JsonView-event-*load"></a>
3248 <div class="fixedFont">
3249 <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>)
3255 <div class="short">Fires when data is loaded.
3261 Fires when data is loaded.
3267 <dl class="detailList">
3268 <dt class="heading">Parameters:</dt>
3271 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3277 <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>
3280 <dd>The JSON data loaded</dd>
3283 <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>
3286 <dd>The raw Connect response object</dd>
3304 <td class="msource">
3309 <tr class="method-row expandable config-row-alt1 notInherited">
3310 <td class="micon"><a class="exi" href="#expand"> </a></td>
3313 <a id="Roo.JsonView-event-*loadexception"></a>
3315 <div class="fixedFont">
3316 <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>)
3322 <div class="short">Fires when loading fails.
3328 Fires when loading fails.
3334 <dl class="detailList">
3335 <dt class="heading">Parameters:</dt>
3338 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3344 <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>
3347 <dd>The raw Connect response object</dd>
3365 <td class="msource">
3370 <tr class="method-row expandable config-row-alt0">
3371 <td class="micon"><a class="exi" href="#expand"> </a></td>
3374 <a id="Roo.View-event-*preparedata"></a>
3376 <div class="fixedFont">
3377 <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>)
3383 <div class="short">Fires on every row to render, to allow you to change the data.
3389 Fires on every row to render, to allow you to change the data.
3395 <dl class="detailList">
3396 <dt class="heading">Parameters:</dt>
3399 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3405 <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>
3408 <dd>to be rendered (change this)</dd>
3426 <td class="msource">
3427 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3431 <tr class="method-row expandable config-row-alt1">
3432 <td class="micon"><a class="exi" href="#expand"> </a></td>
3435 <a id="Roo.View-event-*selectionchange"></a>
3437 <div class="fixedFont">
3438 <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>)
3444 <div class="short">Fires when the selected nodes change.
3450 Fires when the selected nodes change.
3456 <dl class="detailList">
3457 <dt class="heading">Parameters:</dt>
3460 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3466 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3469 <dd>Array of the selected nodes</dd>
3487 <td class="msource">
3488 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3499 <!-- ============================== footer ================================= -->
3500 <div class="fineprint" style="clear:both">
3502 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Apr 24 2014 16:32:52 GMT+0800 (HKT)
3504 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>