2 "name" : "Roo.bootstrap.panel.Content",
6 "desc" : "A basic ContentPanel element.",
10 "memberOf" : "Content",
18 "type" : "String/HTMLElement/Roo.Element",
19 "desc" : "The container element for this panel",
24 "type" : "String/Object",
25 "desc" : "A string to set only the title or a config object",
31 "desc" : "(optional) Set the HTML content for this panel",
37 "desc" : "(optional) Used by xtype constructors to add to regions. (values center,east,west,south,north)",
47 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
48 "memberOf" : "Roo.bootstrap.panel.Content",
55 "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>",
56 "memberOf" : "Roo.util.Observable",
63 "desc" : "render the badges",
64 "memberOf" : "Roo.bootstrap.panel.Content",
69 "name" : "autoScroll",
71 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
72 "memberOf" : "Roo.bootstrap.panel.Content",
77 "name" : "fitToFrame",
79 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
80 "memberOf" : "Roo.bootstrap.panel.Content",
85 "name" : "background",
87 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
88 "memberOf" : "Roo.bootstrap.panel.Content",
95 "desc" : "A toolbar for this panel",
96 "memberOf" : "Roo.bootstrap.panel.Content",
103 "desc" : "which region to put this panel on (when used with xtype constructors)",
104 "memberOf" : "Roo.bootstrap.panel.Content",
116 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
117 "memberOf" : "Roo.bootstrap.panel.Content",
124 "desc" : "The title for this panel",
125 "memberOf" : "Roo.bootstrap.panel.Content",
130 "name" : "autoCreate",
131 "type" : "Boolean/Object",
132 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
133 "memberOf" : "Roo.bootstrap.panel.Content",
138 "name" : "fitContainer",
140 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
141 "memberOf" : "Roo.bootstrap.panel.Content",
148 "desc" : "True if the panel can be closed/removed",
149 "memberOf" : "Roo.bootstrap.panel.Content",
155 "type" : "String/Object",
156 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
157 "memberOf" : "Roo.bootstrap.panel.Content",
162 "name" : "adjustments",
164 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
165 "memberOf" : "Roo.bootstrap.panel.Content",
172 "desc" : "Calls {@link #setUrl} with this value",
173 "memberOf" : "Roo.bootstrap.panel.Content",
179 "type" : "String/HTMLElement/Element",
180 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
181 "memberOf" : "Roo.bootstrap.panel.Content",
189 "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.",
191 "isConstructor" : false,
193 "memberOf" : "Roo.bootstrap.panel.Content",
204 "name" : "getUpdateManager",
205 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
207 "isConstructor" : false,
209 "memberOf" : "Roo.bootstrap.panel.Content",
219 "type" : "Roo.UpdateManager",
220 "desc" : "The UpdateManager"
225 "name" : "getChildContainer",
226 "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>",
228 "isConstructor" : false,
230 "memberOf" : "Roo.bootstrap.panel.Content",
239 "desc" : "Xtype definition of item to add.",
247 "name" : "getToolbar",
248 "desc" : "Returns the toolbar for this Panel if one was configured.",
250 "isConstructor" : false,
252 "memberOf" : "Roo.bootstrap.panel.Content",
262 "type" : "Roo.Toolbar",
269 "desc" : "Set this panel's title",
271 "isConstructor" : false,
273 "memberOf" : "Roo.bootstrap.panel.Content",
291 "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.",
293 "isConstructor" : false,
295 "memberOf" : "Roo.bootstrap.panel.Content",
303 "type" : "String/Function",
304 "desc" : "The URL to load the content from or a function to call to get the URL",
309 "type" : "String/Object",
310 "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)",
316 "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)",
323 "type" : "Roo.UpdateManager",
324 "desc" : "The UpdateManager"
330 "desc" : "Returns this panel's element - used by regiosn to add.",
332 "isConstructor" : false,
334 "memberOf" : "Roo.bootstrap.panel.Content",
344 "type" : "Roo.Element",
351 "desc" : "Destroys this panel",
353 "isConstructor" : false,
355 "memberOf" : "Roo.bootstrap.panel.Content",
367 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
369 "isConstructor" : false,
371 "memberOf" : "Roo.bootstrap.panel.Content",
379 "type" : "Object/String/Function",
380 "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.",
385 "type" : "String/Object",
386 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
392 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
396 "name" : "discardUrl",
398 "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.",
405 "type" : "Roo.ContentPanel",
412 "desc" : "Returns this panel's title",
414 "isConstructor" : false,
416 "memberOf" : "Roo.bootstrap.panel.Content",
432 "name" : "isClosable",
433 "desc" : "Returns true is this panel was configured to be closable",
435 "isConstructor" : false,
437 "memberOf" : "Roo.bootstrap.panel.Content",
454 "desc" : "Returns this panel's id",
456 "isConstructor" : false,
458 "memberOf" : "Roo.bootstrap.panel.Content",
474 "name" : "setContent",
475 "desc" : "Updates this panel's element",
477 "isConstructor" : false,
479 "memberOf" : "Roo.bootstrap.panel.Content",
488 "desc" : "The new content",
492 "name" : "loadScripts",
494 "desc" : "(optional) true to look for and process scripts",
502 "name" : "purgeListeners",
503 "desc" : "Removes all listeners for this object",
505 "isConstructor" : false,
507 "memberOf" : "Roo.util.Observable",
519 "desc" : "Appends an event handler to this element (shorthand for addListener)",
521 "isConstructor" : false,
523 "memberOf" : "Roo.util.Observable",
530 "name" : "eventName",
532 "desc" : "The type of event to listen for",
538 "desc" : "The method the event invokes",
544 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
550 "desc" : "(optional)",
559 "desc" : "Removes a listener (shorthand for removeListener)",
561 "isConstructor" : false,
563 "memberOf" : "Roo.util.Observable",
570 "name" : "eventName",
572 "desc" : "The type of event to listen for",
578 "desc" : "The handler to remove",
584 "desc" : "(optional) The scope (this object) for the handler",
592 "name" : "addEvents",
593 "desc" : "Used to define events on this Observable",
595 "isConstructor" : false,
597 "memberOf" : "Roo.util.Observable",
606 "desc" : "The object with the events defined",
614 "name" : "releaseCapture",
615 "desc" : "Removes <b>all</b> added captures from the Observable.",
617 "isConstructor" : false,
619 "memberOf" : "Roo.util.Observable",
627 "type" : "Observable",
628 "desc" : "The Observable to release",
636 "name" : "removeListener",
637 "desc" : "Removes a listener",
639 "isConstructor" : false,
641 "memberOf" : "Roo.util.Observable",
648 "name" : "eventName",
650 "desc" : "The type of event to listen for",
656 "desc" : "The handler to remove",
662 "desc" : "(optional) The scope (this object) for the handler",
670 "name" : "fireEvent",
671 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
673 "isConstructor" : false,
675 "memberOf" : "Roo.util.Observable",
682 "name" : "eventName",
689 "type" : "Object...",
690 "desc" : "Variable number of parameters are passed to handlers",
698 "desc" : "returns false if any of the handlers return false otherwise it returns true"
703 "name" : "hasListener",
704 "desc" : "Checks to see if this object has any listeners for a specified event",
706 "isConstructor" : false,
708 "memberOf" : "Roo.util.Observable",
715 "name" : "eventName",
717 "desc" : "The name of the event to check for",
725 "desc" : "True if the event is being listened for, else false"
731 "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.",
733 "isConstructor" : false,
735 "memberOf" : "Roo.util.Observable",
743 "type" : "Observable",
744 "desc" : "The Observable to capture",
750 "desc" : "The function to call",
756 "desc" : "(optional) The scope (this object) for the fn",
764 "name" : "addListener",
765 "desc" : "Appends an event handler to this component",
767 "isConstructor" : false,
769 "memberOf" : "Roo.util.Observable",
776 "name" : "eventName",
778 "desc" : "The type of event to listen for",
784 "desc" : "The method the event invokes",
790 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
796 "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>",
807 "desc" : "Fires when this panel is activated.",
816 "type" : "Roo.ContentPanel",
826 "desc" : "Fires when this panel is resized if fitToFrame is true.",
835 "type" : "Roo.ContentPanel",
842 "desc" : "The width after any component adjustments",
848 "desc" : "The height after any component adjustments",
856 "name" : "deactivate",
857 "desc" : "Fires when this panel is activated.",
866 "type" : "Roo.ContentPanel",
876 "desc" : "Fires when this tab is created",
885 "type" : "Roo.ContentPanel",