docs/symbols/Roo.JsonView.html
[roojs1] / docs / symbols / Roo.JsonView.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6         <head>
7                 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8                 <meta name="generator" content="JsDoc Toolkit" />
9                 
10                 
11                 <title>JsDoc Reference - Roo.JsonView</title>
12                 
13                 
14         <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />            
15         <link rel="stylesheet" type="text/css" href="../default.css" />
16         
17         
18         <script type="text/javascript" src="../page.js">
19         
20         </script>
21          
22                 
23         </head>
24
25         <body onload="RooDocsPage.onload();">
26          
27         
28 <div class="body-wrap">
29
30     <!-- ============================== links to methods. ================================= --> 
31
32     <div class="top-tools">
33     <!--
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>
39         -->
40     </div>
41
42     
43 <!-- ============================== inheritance Block. ================================= -->    
44         
45                 <div class="inheritance res-block">
46                    <pre class="res-block-inner"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
47 <img src="../../images/default/s.gif" height="1"  width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.JsonView 
48
49                    </pre>
50                 </div>
51        
52 <!-- ============================== class title / details ============================ -->
53     
54     
55     <h1 class="classTitle">
56                                 
57                                 Class Roo.JsonView
58                         </h1>
59                         
60     <table cellspacing="0" class="class-summary-table">
61         
62                 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
63         
64         <tr><td class="label">Defined In:</td><td class="hd-info">
65                         
66                                         <a href="./src/Roo_JsonView.js.html">Roo/JsonView.js</a>.
67                         
68         </td></tr>
69         <tr><td class="label">Class:</td><td class="hd-info">JsonView</td></tr>
70         
71         
72         
73         
74                 <tr><td class="label">Extends:</td><td class="hd-info">
75                         <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
76         
77                 </td></tr>    
78         
79         
80     </table>
81
82     
83 <!-- ============================== class summary ========================== -->                        
84     <div class="description">
85         Shortcut class to create a JSON + {<b>link</b> Roo.UpdateManager} template view. Usage:<br/><pre><code><br/>var view = new Roo.JsonView("my-element",<br/>    '&lt;div id="{id}"&gt;{foo} - {bar}&lt;/div&gt;', // auto create template<br/>    { multiSelect: true, 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/>    '&lt;div class="entry"&gt;' +<br/>    '&lt;a class="entry-title" href="{link}"&gt;{title}&lt;/a&gt;' +<br/>    "&lt;h4&gt;{date} by {author} | {comments} Comments&lt;/h4&gt;{description}" +<br/>    "&lt;/div&gt;&lt;hr /&gt;"<br/>);<br/><br/>var moreView = new Roo.JsonView("entry-list", 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>
86     </div>
87
88         
89 <!-- ============================== Class comment block... ========================== -->                                       
90
91 <div class="comments">
92         <b>Class Comments / Notes</B> =>  
93         <u onclick="parent.CommentDialog.showCommentId = 'Roo.JsonView';">[Add Your comment/notes about this class]</u>
94         <br/>
95         <iframe frameborder="0"  id="comments-Roo" style="border: none;width:100%;" 
96                 src="/blog.php/GtkDjsComments/Roo.JsonView.html"></iframe>
97 </div>
98         
99
100                 
101 <!-- ============================== config options ========================== -->                                               
102                  
103     
104     
105                 
106     <div class="hr"></div>
107     <a id="Roo.JsonView-configs"></a>
108                 
109     
110     
111      <table cellspacing="0" class="member-table">
112       <caption class="Empty">Config Options - Has None</caption>
113      </table>
114     
115     
116      
117                 
118   
119   
120   
121   
122   
123   
124   
125   
126   <!-- ============================== public properties ==================== -->        
127   
128   
129   
130     <a id="Roo.JsonView-props"></a>      
131     
132     
133
134     
135     
136      <table cellspacing="0" class="member-table">
137       <caption class="Empty">Public Properties - Has None</caption>
138      </table>
139     
140     
141      
142     
143   <!-- ============================== methods summary / details ======================== -->
144   
145   
146   <a id="Roo.JsonView-methods"></a>
147         <!-- constructor?? -->
148         
149         <!-- static's first 
150         
151         
152         -->
153         
154         <!-- then dynamics first -->
155         
156   
157   
158     
159     
160     
161       <table cellspacing="0" class="member-table">
162       <caption>Public Methods</caption>
163         <tr>
164             <th class="sig-header" colspan="2">Method</th>            
165             <th class="msource-header">Defined By</th>
166
167         </tr>
168         
169         
170         
171          
172         
173         
174           
175           <tr class="method-row config-row-alt0 expandable notInherited">
176             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
177            
178            
179             <td class="sig">
180                 <a id="Roo-method-JsonView"   name=".JsonView"></a>
181                 <div class="fixedFont">
182                         <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
183                                 
184                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Element <B><i>container</i></B>, Template <B><i>tpl</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>) 
185                         
186                                 
187                         
188                 </div>
189                 <div class="mdesc">
190                 
191                  
192                         <div class="short">Create a new Roo.JsonView</div> 
193                  
194                  
195                     <div class="long">
196                         
197                         
198                         
199                                 Create a new Roo.JsonView
200                         
201                         
202                                 <dl class="detailList">
203                                 <dt class="heading">Parameters:</dt>
204                                 
205                                         <dt>
206                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Element</span>  <b>container</b>
207                                                 
208                                         </dt>
209                                         <dd>The container element where the view is to be rendered.</dd>
210                                 
211                                         <dt>
212                                                 <span class="fixedFont">Template</span>  <b>tpl</b>
213                                                 
214                                         </dt>
215                                         <dd>The rendering template</dd>
216                                 
217                                         <dt>
218                                                 <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>
219                                                 
220                                         </dt>
221                                         <dd>The config object</dd>
222                                 
223                                 </dl>
224                         
225                         
226                         
227                         
228                         
229                         
230                         
231
232                     
233                     
234                      
235                     </div>                    
236                 </div>
237
238             </td>
239             <td class="msource">
240                 &nbsp;
241             </td>
242         </tr>
243         
244           
245           <tr class="method-row config-row-alt1 expandable notInherited">
246             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
247            
248            
249             <td class="sig">
250                 <a id="Roo.JsonView-method-clearFilter"   name=".clearFilter"></a>
251                 <div class="fixedFont">
252                         <span class="attributes"></span><b class="itemname">clearFilter</b>
253                                 
254                                  () 
255                         
256                                 
257                         
258                 </div>
259                 <div class="mdesc">
260                 
261                    <div class="short">Clears the current filter.</div> 
262                  
263                  
264                  
265                     <div class="long">
266                         
267                                 Clears the current filter.
268                     
269                                 
270                         
271                         
272                         
273                         
274                         
275                         
276                         
277                         
278                         
279                         
280
281                     
282                     
283                      
284                     </div>                    
285                 </div>
286
287             </td>
288             <td class="msource">
289                 
290                         Roo.JsonView
291                 &nbsp;
292             </td>
293         </tr>
294         
295           
296           <tr class="method-row config-row-alt0 expandable notInherited">
297             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
298            
299            
300             <td class="sig">
301                 <a id="Roo.JsonView-method-filter"   name=".filter"></a>
302                 <div class="fixedFont">
303                         <span class="attributes"></span><b class="itemname">filter</b>
304                                 
305                                  (<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>) 
306                         
307                                 
308                         
309                 </div>
310                 <div class="mdesc">
311                 
312                    <div class="short">Filter the data by a specific property.</div> 
313                  
314                  
315                  
316                     <div class="long">
317                         
318                                 Filter the data by a specific property.
319                     
320                                 
321                         
322                         
323                         
324                         
325                                 <dl class="detailList">
326                                 <dt class="heading">Parameters:</dt>
327                                 
328                                         <dt>
329                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>property</b>
330                                                 
331                                         </dt>
332                                         <dd>A property on your JSON objects</dd>
333                                 
334                                         <dt>
335                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span>  <b>value</b>
336                                                 
337                                         </dt>
338                                         <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
339                                 
340                                 </dl>
341                         
342                         
343                         
344                         
345                         
346                         
347                         
348
349                     
350                     
351                      
352                     </div>                    
353                 </div>
354
355             </td>
356             <td class="msource">
357                 
358                         Roo.JsonView
359                 &nbsp;
360             </td>
361         </tr>
362         
363           
364           <tr class="method-row config-row-alt1 expandable notInherited">
365             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
366            
367            
368             <td class="sig">
369                 <a id="Roo.JsonView-method-filterBy"   name=".filterBy"></a>
370                 <div class="fixedFont">
371                         <span class="attributes"></span><b class="itemname">filterBy</b>
372                                 
373                                  (<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>) 
374                         
375                                 
376                         
377                 </div>
378                 <div class="mdesc">
379                 
380                    <div class="short">Filter by a function.</div> 
381                  
382                  
383                  
384                     <div class="long">
385                         
386                                 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.
387                     
388                                 
389                         
390                         
391                         
392                         
393                                 <dl class="detailList">
394                                 <dt class="heading">Parameters:</dt>
395                                 
396                                         <dt>
397                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
398                                                 
399                                         </dt>
400                                         <dd></dd>
401                                 
402                                         <dt>
403                                                 <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>
404                                                 
405                                         </dt>
406                                         <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
407                                 
408                                 </dl>
409                         
410                         
411                         
412                         
413                         
414                         
415                         
416
417                     
418                     
419                      
420                     </div>                    
421                 </div>
422
423             </td>
424             <td class="msource">
425                 
426                         Roo.JsonView
427                 &nbsp;
428             </td>
429         </tr>
430         
431           
432           <tr class="method-row config-row-alt0 expandable notInherited">
433             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
434            
435            
436             <td class="sig">
437                 <a id="Roo.JsonView-method-getCount"   name=".getCount"></a>
438                 <div class="fixedFont">
439                         <span class="attributes"></span><b class="itemname">getCount</b>
440                                 
441                                  () 
442                         
443                                 
444                                          : 
445                                         
446                                                 
447                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
448                                         
449                                         
450                                         
451                                 
452                         
453                 </div>
454                 <div class="mdesc">
455                 
456                    <div class="short">Get the number of records in the current JSON dataset</div> 
457                  
458                  
459                  
460                     <div class="long">
461                         
462                                 Get the number of records in the current JSON dataset
463                     
464                                 
465                         
466                         
467                         
468                         
469                         
470                         
471                         
472                         
473                                 <dl class="detailList">
474                                 <dt class="heading">Returns:</dt>
475                                 
476                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  </dd>
477                                 
478                                 </dl>
479                         
480                         
481                         
482
483                     
484                     
485                      
486                     </div>                    
487                 </div>
488
489             </td>
490             <td class="msource">
491                 
492                         Roo.JsonView
493                 &nbsp;
494             </td>
495         </tr>
496         
497           
498           <tr class="method-row config-row-alt1 expandable notInherited">
499             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
500            
501            
502             <td class="sig">
503                 <a id="Roo.JsonView-method-getNodeData"   name=".getNodeData"></a>
504                 <div class="fixedFont">
505                         <span class="attributes"></span><b class="itemname">getNodeData</b>
506                                 
507                                  (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>) 
508                         
509                                 
510                                          : 
511                                         
512                                                 
513                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
514                                         
515                                         
516                                         
517                                 
518                         
519                 </div>
520                 <div class="mdesc">
521                 
522                    <div class="short">Returns the JSON object for the specified node(s)</div> 
523                  
524                  
525                  
526                     <div class="long">
527                         
528                                 Returns the JSON object for the specified node(s)
529                     
530                                 
531                         
532                         
533                         
534                         
535                                 <dl class="detailList">
536                                 <dt class="heading">Parameters:</dt>
537                                 
538                                         <dt>
539                                                 <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>
540                                                 
541                                         </dt>
542                                         <dd>The node or an array of nodes</dd>
543                                 
544                                 </dl>
545                         
546                         
547                         
548                         
549                         
550                                 <dl class="detailList">
551                                 <dt class="heading">Returns:</dt>
552                                 
553                                         <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>
554                                 
555                                 </dl>
556                         
557                         
558                         
559
560                     
561                     
562                      
563                     </div>                    
564                 </div>
565
566             </td>
567             <td class="msource">
568                 
569                         Roo.JsonView
570                 &nbsp;
571             </td>
572         </tr>
573         
574           
575           <tr class="method-row config-row-alt0 expandable notInherited">
576             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
577            
578            
579             <td class="sig">
580                 <a id="Roo.JsonView-method-load"   name=".load"></a>
581                 <div class="fixedFont">
582                         <span class="attributes"></span><b class="itemname">load</b>
583                                 
584                                  (<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>) 
585                         
586                                 
587                         
588                 </div>
589                 <div class="mdesc">
590                 
591                    <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div> 
592                  
593                  
594                  
595                     <div class="long">
596                         
597                                 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.
598                     
599                                 
600                         
601                         
602                         
603                         
604                                 <dl class="detailList">
605                                 <dt class="heading">Parameters:</dt>
606                                 
607                                         <dt>
608                                                 <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>
609                                                 
610                                         </dt>
611                                         <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>
612                                 
613                                         <dt>
614                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span>  <b>params</b>
615                                                 
616                                         </dt>
617                                         <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&amp;param2=2" or an object {param1: 1, param2: 2}</dd>
618                                 
619                                         <dt>
620                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>callback</b>
621                                                 
622                                         </dt>
623                                         <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
624                                 
625                                         <dt>
626                                                 <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>
627                                                 
628                                         </dt>
629                                         <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>
630                                 
631                                 </dl>
632                         
633                         
634                         
635                         
636                         
637                         
638                         
639
640                     
641                     
642                      
643                     </div>                    
644                 </div>
645
646             </td>
647             <td class="msource">
648                 
649                         Roo.JsonView
650                 &nbsp;
651             </td>
652         </tr>
653         
654           
655           <tr class="method-row config-row-alt1 expandable notInherited">
656             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
657            
658            
659             <td class="sig">
660                 <a id="Roo.JsonView-method-refresh"   name=".refresh"></a>
661                 <div class="fixedFont">
662                         <span class="attributes"></span><b class="itemname">refresh</b>
663                                 
664                                  () 
665                         
666                                 
667                         
668                 </div>
669                 <div class="mdesc">
670                 
671                    <div class="short">Refreshes the view.</div> 
672                  
673                  
674                  
675                     <div class="long">
676                         
677                                 Refreshes the view.
678                     
679                                 
680                         
681                         
682                         
683                         
684                         
685                         
686                         
687                         
688                         
689                         
690
691                     
692                     
693                      
694                     </div>                    
695                 </div>
696
697             </td>
698             <td class="msource">
699                 
700                         Roo.JsonView
701                 &nbsp;
702             </td>
703         </tr>
704         
705           
706           <tr class="method-row config-row-alt0 expandable notInherited">
707             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
708            
709            
710             <td class="sig">
711                 <a id="Roo.JsonView-method-sort"   name=".sort"></a>
712                 <div class="fixedFont">
713                         <span class="attributes"></span><b class="itemname">sort</b>
714                                 
715                                  (<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>) 
716                         
717                                 
718                         
719                 </div>
720                 <div class="mdesc">
721                 
722                    <div class="short">Sorts the data for this view and refreshes it.</div> 
723                  
724                  
725                  
726                     <div class="long">
727                         
728                                 Sorts the data for this view and refreshes it.
729                     
730                                 
731                         
732                         
733                         
734                         
735                                 <dl class="detailList">
736                                 <dt class="heading">Parameters:</dt>
737                                 
738                                         <dt>
739                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>property</b>
740                                                 
741                                         </dt>
742                                         <dd>A property on your JSON objects to sort on</dd>
743                                 
744                                         <dt>
745                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>direction</b>
746                                                 
747                                         </dt>
748                                         <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
749                                 
750                                         <dt>
751                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>sortType</b>
752                                                 
753                                         </dt>
754                                         <dd>(optional) A function to call to convert the data to a sortable value.</dd>
755                                 
756                                 </dl>
757                         
758                         
759                         
760                         
761                         
762                         
763                         
764
765                     
766                     
767                      
768                     </div>                    
769                 </div>
770
771             </td>
772             <td class="msource">
773                 
774                         Roo.JsonView
775                 &nbsp;
776             </td>
777         </tr>
778         
779                                                        
780     </table>
781
782   
783   <!-- ============================== events summary / details ======================== -->
784   
785   
786   <a id="Roo.JsonView-events"></a>
787     
788   
789         
790    
791   
792     
793     
794     
795       <table cellspacing="0" class="member-table">
796                 <caption>Events</caption>
797               <thead>
798                 <tr>
799                     <th class="sig-header" colspan="2">Event</th>            
800                     <th class="msource-header">Defined By</th>
801
802                 </tr>
803               </thead>  
804         
805         
806          
807         
808         
809           <tr class="method-row expandable config-row-alt0 notInherited">
810             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
811             
812             <td class="sig">
813                 <a id="Roo.JsonView-event-*beforerender"></a>
814                 
815                <div class="fixedFont">
816                 <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>) 
817                 
818                 </div>
819
820                 <div class="mdesc">
821
822                    <div class="short">Fires before rendering of the downloaded JSON data.
823                    
824                 </div> 
825                     
826                     <div class="long">
827                     
828                         Fires before rendering of the downloaded JSON data.
829                     
830                         
831                         
832                 
833                         
834                                 <dl class="detailList">
835                                 <dt class="heading">Parameters:</dt>
836                                 
837                                         <dt>
838                                                 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
839                                                 
840                                         </dt>
841                                         <dd></dd>
842                                 
843                                         <dt>
844                                                 <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>
845                                                 
846                                         </dt>
847                                         <dd>The JSON data loaded</dd>
848                                 
849                                 </dl>
850                         
851                         
852                         
853                         
854                         
855                         
856                         
857
858                     
859                     
860                      
861                     </div>                    
862                 </div>
863
864             </td>
865             <td class="msource">
866                 Roo.JsonView
867             </td>
868         </tr>
869         
870           <tr class="method-row expandable config-row-alt1 notInherited">
871             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
872             
873             <td class="sig">
874                 <a id="Roo.JsonView-event-*load"></a>
875                 
876                <div class="fixedFont">
877                 <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>) 
878                 
879                 </div>
880
881                 <div class="mdesc">
882
883                    <div class="short">Fires when data is loaded.
884                    
885                 </div> 
886                     
887                     <div class="long">
888                     
889                         Fires when data is loaded.
890                     
891                         
892                         
893                 
894                         
895                                 <dl class="detailList">
896                                 <dt class="heading">Parameters:</dt>
897                                 
898                                         <dt>
899                                                 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
900                                                 
901                                         </dt>
902                                         <dd></dd>
903                                 
904                                         <dt>
905                                                 <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>
906                                                 
907                                         </dt>
908                                         <dd>The JSON data loaded</dd>
909                                 
910                                         <dt>
911                                                 <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>
912                                                 
913                                         </dt>
914                                         <dd>The raw Connect response object</dd>
915                                 
916                                 </dl>
917                         
918                         
919                         
920                         
921                         
922                         
923                         
924
925                     
926                     
927                      
928                     </div>                    
929                 </div>
930
931             </td>
932             <td class="msource">
933                 Roo.JsonView
934             </td>
935         </tr>
936         
937           <tr class="method-row expandable config-row-alt0 notInherited">
938             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
939             
940             <td class="sig">
941                 <a id="Roo.JsonView-event-*loadexception"></a>
942                 
943                <div class="fixedFont">
944                 <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>) 
945                 
946                 </div>
947
948                 <div class="mdesc">
949
950                    <div class="short">Fires when loading fails.
951                    
952                 </div> 
953                     
954                     <div class="long">
955                     
956                         Fires when loading fails.
957                     
958                         
959                         
960                 
961                         
962                                 <dl class="detailList">
963                                 <dt class="heading">Parameters:</dt>
964                                 
965                                         <dt>
966                                                 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
967                                                 
968                                         </dt>
969                                         <dd></dd>
970                                 
971                                         <dt>
972                                                 <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>
973                                                 
974                                         </dt>
975                                         <dd>The raw Connect response object</dd>
976                                 
977                                 </dl>
978                         
979                         
980                         
981                         
982                         
983                         
984                         
985
986                     
987                     
988                      
989                     </div>                    
990                 </div>
991
992             </td>
993             <td class="msource">
994                 Roo.JsonView
995             </td>
996         </tr>
997         
998                                                        
999     </table>
1000
1001   
1002   
1003   
1004  
1005 <!-- ============================== footer ================================= -->
1006                 <div class="fineprint" style="clear:both">
1007                         
1008                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Fri Jul 16 2010 16:11:48 GMT+0800 (HKT)
1009                         Based on 
1010                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
1011                 </div>
1012         </body>
1013 </html>