2 "name" : "Roo.GridPanel",
8 "desc" : "Create a new GridPanel.",
12 "memberOf" : "GridPanel",
20 "type" : "Roo.grid.Grid",
21 "desc" : "The grid for this panel",
26 "type" : "String/Object",
27 "desc" : "A string to set only the panel's title, or a config object",
38 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
39 "memberOf" : "Roo.ContentPanel"
44 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
45 "memberOf" : "Roo.util.Observable"
48 "name" : "autoScroll",
50 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
51 "memberOf" : "Roo.ContentPanel"
54 "name" : "fitToFrame",
56 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
57 "memberOf" : "Roo.ContentPanel"
60 "name" : "background",
62 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
63 "memberOf" : "Roo.ContentPanel"
67 "type" : "Roo.Toolbar",
68 "desc" : "A toolbar for this panel",
69 "memberOf" : "Roo.ContentPanel"
74 "desc" : "[required] (center|north|south|east|west) which region to put this panel on (when used with xtype constructors)",
75 "memberOf" : "Roo.ContentPanel"
80 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
81 "memberOf" : "Roo.ContentPanel"
85 "type" : "Roo.menu.Menu",
86 "desc" : "popup menu",
87 "memberOf" : "Roo.ContentPanel"
92 "desc" : "The title for this panel",
93 "memberOf" : "Roo.ContentPanel"
98 "desc" : "Extra style to add to the content panel",
99 "memberOf" : "Roo.ContentPanel"
102 "name" : "autoCreate",
103 "type" : "Boolean|Object",
104 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
105 "memberOf" : "Roo.ContentPanel"
108 "name" : "fitContainer",
110 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
111 "memberOf" : "Roo.ContentPanel"
116 "desc" : "True if the panel can be closed/removed",
117 "memberOf" : "Roo.ContentPanel"
121 "type" : "String|Object",
122 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
123 "memberOf" : "Roo.ContentPanel"
126 "name" : "adjustments",
128 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
129 "memberOf" : "Roo.ContentPanel"
134 "desc" : "Calls {@link #setUrl} with this value",
135 "memberOf" : "Roo.ContentPanel"
139 "type" : "String|HTMLElement|Element",
140 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
141 "memberOf" : "Roo.ContentPanel"
148 "desc" : "Returns the grid for this panel",
149 "sig" : "()\n{\n\n}",
153 "isConstructor" : false,
165 "type" : "Roo.grid.Grid",
173 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
174 "sig" : "(url, params, callback, discardUrl)",
176 "memberOf" : "Roo.ContentPanel",
178 "isConstructor" : false,
189 "type" : "Object/String/Function",
190 "desc" : "The url for this request or a function to call to get the url or a config object containing any of the following options:\n<pre><code>\npanel.load({\n url: \"your-url.php\",\n params: {param1: \"foo\", param2: \"bar\"}, // or a URL encoded string\n callback: yourFunction,\n scope: yourObject, //(optional scope)\n discardUrl: false,\n nocache: false,\n text: \"Loading...\",\n timeout: 30,\n scripts: false\n});\n</code></pre>\nThe only required property is <i>url</i>. The optional properties <i>nocache</i>, <i>text</i> and <i>scripts</i>\nare shorthand for <i>disableCaching</i>, <i>indicatorText</i> and <i>loadScripts</i> and are used to set their associated property on this panel UpdateManager instance.",
195 "type" : "String/Object",
196 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
202 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
206 "name" : "discardUrl",
208 "desc" : "(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.",
215 "type" : "Roo.ContentPanel",
221 "name" : "getUpdateManager",
223 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
224 "sig" : "()\n{\n\n}",
226 "memberOf" : "Roo.ContentPanel",
228 "isConstructor" : false,
240 "type" : "Roo.UpdateManager",
241 "desc" : "The UpdateManager"
246 "name" : "isClosable",
248 "desc" : "Returns true is this panel was configured to be closable",
249 "sig" : "()\n{\n\n}",
251 "memberOf" : "Roo.ContentPanel",
253 "isConstructor" : false,
273 "desc" : "Destroys this panel",
274 "sig" : "()\n{\n\n}",
276 "memberOf" : "Roo.ContentPanel",
278 "isConstructor" : false,
292 "desc" : "Returns this panel's element - used by regiosn to add.",
293 "sig" : "()\n{\n\n}",
295 "memberOf" : "Roo.ContentPanel",
297 "isConstructor" : false,
309 "type" : "Roo.Element",
315 "name" : "setContent",
317 "desc" : "Updates this panel's element",
318 "sig" : "(content, loadScripts)",
320 "memberOf" : "Roo.ContentPanel",
322 "isConstructor" : false,
334 "desc" : "The new content",
338 "name" : "loadScripts",
340 "desc" : "(optional) true to look for and process scripts",
349 "desc" : "Returns this panel's id",
350 "sig" : "()\n{\n\n}",
352 "memberOf" : "Roo.ContentPanel",
354 "isConstructor" : false,
374 "desc" : "Adds a xtype elements to the panel - currently only supports Forms, View, JsonView.\n<pre><code>\n\nlayout.addxtype({\n xtype : 'Form',\n items: [ .... ]\n }\n);\n\n</code></pre>",
377 "memberOf" : "Roo.ContentPanel",
379 "isConstructor" : false,
391 "desc" : "Xtype definition of item to add.",
400 "desc" : "Force a content refresh from the URL specified in the {@link #setUrl} method.\n Will fail silently if the {@link #setUrl} method has not been called.\n This does not activate the panel, just updates its content.",
401 "sig" : "()\n{\n\n}",
403 "memberOf" : "Roo.ContentPanel",
405 "isConstructor" : false,
419 "desc" : "Returns this panel's title",
420 "sig" : "()\n{\n\n}",
422 "memberOf" : "Roo.ContentPanel",
424 "isConstructor" : false,
444 "desc" : "Set this panel's title",
447 "memberOf" : "Roo.ContentPanel",
449 "isConstructor" : false,
468 "name" : "getToolbar",
470 "desc" : "Returns the toolbar for this Panel if one was configured.",
471 "sig" : "()\n{\n\n}",
473 "memberOf" : "Roo.ContentPanel",
475 "isConstructor" : false,
487 "type" : "Roo.Toolbar",
495 "desc" : "Set a URL to be used to load the content for this panel. When this panel is activated, the content will be loaded from that URL.",
496 "sig" : "(url, params, loadOnce)",
498 "memberOf" : "Roo.ContentPanel",
500 "isConstructor" : false,
511 "type" : "String/Function",
512 "desc" : "The URL to load the content from or a function to call to get the URL",
517 "type" : "String/Object",
518 "desc" : "(optional) The string params for the update call or an object of the params. See {@link Roo.UpdateManager#update} for more details. (Defaults to null)",
524 "desc" : "(optional) Whether to only load the content once. If this is false it makes the Ajax call every time this panel is activated. (Defaults to false)",
531 "type" : "Roo.UpdateManager",
532 "desc" : "The UpdateManager"
537 "name" : "purgeListeners",
539 "desc" : "Removes all listeners for this object",
540 "sig" : "()\n{\n\n}",
542 "memberOf" : "Roo.util.Observable",
544 "isConstructor" : false,
558 "desc" : "Appends an event handler to this element (shorthand for addListener)",
559 "sig" : "(eventName, handler, scope, options)",
561 "memberOf" : "Roo.util.Observable",
563 "isConstructor" : false,
573 "name" : "eventName",
575 "desc" : "The type of event to listen for",
581 "desc" : "The method the event invokes",
587 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
593 "desc" : "(optional)",
602 "desc" : "Removes a listener (shorthand for removeListener)",
603 "sig" : "(eventName, handler, scope)",
605 "memberOf" : "Roo.util.Observable",
607 "isConstructor" : false,
617 "name" : "eventName",
619 "desc" : "The type of event to listen for",
625 "desc" : "The handler to remove",
631 "desc" : "(optional) The scope (this object) for the handler",
638 "name" : "addEvents",
640 "desc" : "Used to define events on this Observable",
643 "memberOf" : "Roo.util.Observable",
645 "isConstructor" : false,
657 "desc" : "The object with the events defined",
664 "name" : "releaseCapture",
666 "desc" : "Removes <b>all</b> added captures from the Observable.",
669 "memberOf" : "Roo.util.Observable",
671 "isConstructor" : false,
682 "type" : "Observable",
683 "desc" : "The Observable to release",
690 "name" : "removeListener",
692 "desc" : "Removes a listener",
693 "sig" : "(eventName, handler, scope)",
695 "memberOf" : "Roo.util.Observable",
697 "isConstructor" : false,
707 "name" : "eventName",
709 "desc" : "The type of event to listen for",
715 "desc" : "The handler to remove",
721 "desc" : "(optional) The scope (this object) for the handler",
728 "name" : "fireEvent",
730 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
731 "sig" : "(eventName, args)",
733 "memberOf" : "Roo.util.Observable",
735 "isConstructor" : false,
745 "name" : "eventName",
752 "type" : "Object...",
753 "desc" : "Variable number of parameters are passed to handlers",
761 "desc" : "returns false if any of the handlers return false otherwise it returns true"
766 "name" : "hasListener",
768 "desc" : "Checks to see if this object has any listeners for a specified event",
769 "sig" : "(eventName)",
771 "memberOf" : "Roo.util.Observable",
773 "isConstructor" : false,
783 "name" : "eventName",
785 "desc" : "The name of the event to check for",
793 "desc" : "True if the event is being listened for, else false"
800 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
801 "sig" : "(o, fn, scope)",
803 "memberOf" : "Roo.util.Observable",
805 "isConstructor" : false,
816 "type" : "Observable",
817 "desc" : "The Observable to capture",
823 "desc" : "The function to call",
829 "desc" : "(optional) The scope (this object) for the fn",
836 "name" : "addListener",
838 "desc" : "Appends an event handler to this component",
839 "sig" : "(eventName, handler, scope, options)",
841 "memberOf" : "Roo.util.Observable",
843 "isConstructor" : false,
853 "name" : "eventName",
855 "desc" : "The type of event to listen for",
861 "desc" : "The method the event invokes",
867 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
873 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
882 "name" : "deactivate",
884 "desc" : "Fires when this panel is activated.",
885 "sig" : "function (_self)\n{\n\n}",
886 "memberOf" : "Roo.ContentPanel",
894 "type" : "Roo.ContentPanel",
904 "desc" : "Fires when this panel is resized if fitToFrame is true.",
905 "sig" : "function (_self, width, height)\n{\n\n}",
906 "memberOf" : "Roo.ContentPanel",
914 "type" : "Roo.ContentPanel",
921 "desc" : "The width after any component adjustments",
927 "desc" : "The height after any component adjustments",
936 "desc" : "Fires when this tab is created",
937 "sig" : "function (_self)\n{\n\n}",
938 "memberOf" : "Roo.ContentPanel",
946 "type" : "Roo.ContentPanel",
956 "desc" : "Fires when this panel is activated.",
957 "sig" : "function (_self)\n{\n\n}",
958 "memberOf" : "Roo.ContentPanel",
966 "type" : "Roo.ContentPanel",