File: Ext.Updater.BasicRenderer.html

package info (click to toggle)
libjs-extjs 3.4.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 53,188 kB
  • ctags: 3,384
  • sloc: php: 819; xml: 537; python: 60; sql: 44; makefile: 35
file content (3 lines) | stat: -rw-r--r-- 3,335 bytes parent folder | download
1
2
3
<div xmlns:ext="http://www.extjs.com" class="body-wrap"><h1>Class <a href="source/UpdateManager.html#cls-Ext.Updater.BasicRenderer">Ext.Updater.BasicRenderer</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr><tr><td class="label">Defined In:</td><td class="hd-info"><a href="source/UpdateManager.html#cls-Ext.Updater.BasicRenderer">UpdateManager.js</a></td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/UpdateManager.html#cls-Ext.Updater.BasicRenderer">Updater.BasicRenderer</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr></table><div class="description"><p>This class is a base class implementing a simple render method which updates an element using results from an Ajax request.</p>
<p>The BasicRenderer updates the element's innerHTML with the responseText. To perform a custom render (i.e. XML or JSON processing),
create an object with a conforming <a href="output/Ext.Updater.BasicRenderer.html#Ext.Updater.BasicRenderer-render" ext:member="render" ext:cls="Ext.Updater.BasicRenderer">render</a> method and pass it to setRenderer on the Updater.</p></div><div class="hr"></div><a id="Ext.Updater.BasicRenderer-props"></a><h2>Public Properties</h2><div class="no-members">This class has no public properties.</div><a id="Ext.Updater.BasicRenderer-methods"></a><h2>Public Methods</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Method</th><th class="msource-header">Defined By</th></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Updater.BasicRenderer-render"></a><b class="method"><a href="source/UpdateManager.html#method-Ext.Updater.BasicRenderer-render">render</a></b><span class="openparen">(&nbsp;</span><span title="Required" class="required">Ext.Element&nbsp;el</span><span class="comma">,&nbsp;</span><span title="Required" class="required">Object&nbsp;xhr</span><span class="comma">,&nbsp;</span><span title="Required" class="required">Updater&nbsp;updateManager</span><span class="comma">,&nbsp;</span><span title="Required" class="required">Function&nbsp;callback</span><span class="closeparen">&nbsp;)</span><span class="colon">&nbsp;:&nbsp;</span><span class="return">void</span><div class="mdesc"><div class="short">This method is called when an Ajax response is received, and an Element needs updating.</div><div class="long">This method is called when an Ajax response is received, and an Element needs updating.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : Ext.Element<div class="sub-desc">The element being rendered</div></li><li><code>xhr</code> : Object<div class="sub-desc">The XMLHttpRequest object</div></li><li><code>updateManager</code> : Updater<div class="sub-desc">The calling update manager</div></li><li><code>callback</code> : Function<div class="sub-desc">A callback that will need to be called if loadScripts is true on the Updater</div></li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource">Updater.BasicRenderer</td></tr></tbody></table><a id="Ext.Updater.BasicRenderer-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>