2 "name" : "Roo.bootstrap.panel.Content",
6 "desc" : "A basic ContentPanel element. - a panel that contain any content (eg. forms etc.)",
10 "memberOf" : "Content",
18 "type" : "String/Object",
19 "desc" : "A string to set only the title or a config object",
30 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
36 "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>",
37 "memberOf" : "Roo.util.Observable"
42 "desc" : "render the badges",
46 "name" : "autoScroll",
48 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
52 "name" : "fitToFrame",
54 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
58 "name" : "background",
60 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
66 "desc" : "A toolbar for this panel",
72 "desc" : "[required] (center|north|south|east|west) which region to put this panel on (when used with xtype constructors)",
78 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
84 "desc" : "The title for this panel",
90 "desc" : "contents are an iframe - makes showing remote sources/CSS feasible..",
96 "desc" : "extra classes to use",
100 "name" : "autoCreate",
101 "type" : "Boolean/Object",
102 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
106 "name" : "fitContainer",
108 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
114 "desc" : "True if the panel can be closed/removed",
119 "type" : "String/Object",
120 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
124 "name" : "adjustments",
126 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
132 "desc" : "Calls {@link #setUrl} with this value",
137 "type" : "String/HTMLElement/Element",
138 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
146 "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.",
147 "sig" : "()\n{\n\n}",
151 "isConstructor" : false,
163 "name" : "getUpdateManager",
165 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
166 "sig" : "()\n{\n\n}",
170 "isConstructor" : false,
182 "type" : "Roo.UpdateManager",
183 "desc" : "The UpdateManager"
188 "name" : "getChildContainer",
190 "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>",
195 "isConstructor" : false,
207 "desc" : "Xtype definition of item to add.",
214 "name" : "getToolbar",
216 "desc" : "Returns the toolbar for this Panel if one was configured.",
217 "sig" : "()\n{\n\n}",
221 "isConstructor" : false,
233 "type" : "Roo.Toolbar",
241 "desc" : "Set this panel's title",
246 "isConstructor" : false,
267 "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.",
268 "sig" : "(url, params, loadOnce)",
272 "isConstructor" : false,
283 "type" : "String/Function",
284 "desc" : "The URL to load the content from or a function to call to get the URL",
289 "type" : "String/Object",
290 "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)",
296 "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)",
303 "type" : "Roo.UpdateManager|Boolean",
304 "desc" : "The UpdateManager or false if IFRAME"
311 "desc" : "Returns this panel's element - used by regiosn to add.",
312 "sig" : "()\n{\n\n}",
316 "isConstructor" : false,
328 "type" : "Roo.Element",
336 "desc" : "Destroys this panel",
337 "sig" : "()\n{\n\n}",
341 "isConstructor" : false,
355 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.\nDoes not work with IFRAME contents",
356 "sig" : "(url, params, callback, discardUrl)",
360 "isConstructor" : false,
371 "type" : "Object/String/Function",
372 "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.",
377 "type" : "String/Object",
378 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
384 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
388 "name" : "discardUrl",
390 "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.",
397 "type" : "Roo.ContentPanel",
405 "desc" : "Returns this panel's title",
406 "sig" : "()\n{\n\n}",
410 "isConstructor" : false,
428 "name" : "isClosable",
430 "desc" : "Returns true is this panel was configured to be closable",
431 "sig" : "()\n{\n\n}",
435 "isConstructor" : false,
455 "desc" : "Returns this panel's id",
456 "sig" : "()\n{\n\n}",
460 "isConstructor" : false,
478 "name" : "setContent",
480 "desc" : "Updates this panel's element (not for iframe)",
481 "sig" : "(content, loadScripts)",
485 "isConstructor" : false,
497 "desc" : "The new content",
501 "name" : "loadScripts",
503 "desc" : "(optional) true to look for and process scripts",
510 "name" : "purgeListeners",
512 "desc" : "Removes all listeners for this object",
513 "sig" : "()\n{\n\n}",
515 "memberOf" : "Roo.util.Observable",
517 "isConstructor" : false,
531 "desc" : "Appends an event handler to this element (shorthand for addListener)",
532 "sig" : "(eventName, handler, scope, options)",
534 "memberOf" : "Roo.util.Observable",
536 "isConstructor" : false,
546 "name" : "eventName",
548 "desc" : "The type of event to listen for",
554 "desc" : "The method the event invokes",
560 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
566 "desc" : "(optional)",
575 "desc" : "Removes a listener (shorthand for removeListener)",
576 "sig" : "(eventName, handler, scope)",
578 "memberOf" : "Roo.util.Observable",
580 "isConstructor" : false,
590 "name" : "eventName",
592 "desc" : "The type of event to listen for",
598 "desc" : "The handler to remove",
604 "desc" : "(optional) The scope (this object) for the handler",
611 "name" : "addEvents",
613 "desc" : "Used to define events on this Observable",
616 "memberOf" : "Roo.util.Observable",
618 "isConstructor" : false,
630 "desc" : "The object with the events defined",
637 "name" : "releaseCapture",
639 "desc" : "Removes <b>all</b> added captures from the Observable.",
642 "memberOf" : "Roo.util.Observable",
644 "isConstructor" : false,
655 "type" : "Observable",
656 "desc" : "The Observable to release",
663 "name" : "removeListener",
665 "desc" : "Removes a listener",
666 "sig" : "(eventName, handler, scope)",
668 "memberOf" : "Roo.util.Observable",
670 "isConstructor" : false,
680 "name" : "eventName",
682 "desc" : "The type of event to listen for",
688 "desc" : "The handler to remove",
694 "desc" : "(optional) The scope (this object) for the handler",
701 "name" : "fireEvent",
703 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
704 "sig" : "(eventName, args)",
706 "memberOf" : "Roo.util.Observable",
708 "isConstructor" : false,
718 "name" : "eventName",
725 "type" : "Object...",
726 "desc" : "Variable number of parameters are passed to handlers",
734 "desc" : "returns false if any of the handlers return false otherwise it returns true"
739 "name" : "hasListener",
741 "desc" : "Checks to see if this object has any listeners for a specified event",
742 "sig" : "(eventName)",
744 "memberOf" : "Roo.util.Observable",
746 "isConstructor" : false,
756 "name" : "eventName",
758 "desc" : "The name of the event to check for",
766 "desc" : "True if the event is being listened for, else false"
773 "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.",
774 "sig" : "(o, fn, scope)",
776 "memberOf" : "Roo.util.Observable",
778 "isConstructor" : false,
789 "type" : "Observable",
790 "desc" : "The Observable to capture",
796 "desc" : "The function to call",
802 "desc" : "(optional) The scope (this object) for the fn",
809 "name" : "addListener",
811 "desc" : "Appends an event handler to this component",
812 "sig" : "(eventName, handler, scope, options)",
814 "memberOf" : "Roo.util.Observable",
816 "isConstructor" : false,
826 "name" : "eventName",
828 "desc" : "The type of event to listen for",
834 "desc" : "The method the event invokes",
840 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
846 "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>",
857 "desc" : "Fires when this panel is activated.",
858 "sig" : "function (_self)\n{\n\n}",
867 "type" : "Roo.ContentPanel",
877 "desc" : "Fires when this panel is resized if fitToFrame is true.",
878 "sig" : "function (_self, width, height)\n{\n\n}",
887 "type" : "Roo.ContentPanel",
894 "desc" : "The width after any component adjustments",
900 "desc" : "The height after any component adjustments",
907 "name" : "deactivate",
909 "desc" : "Fires when this panel is activated.",
910 "sig" : "function (_self)\n{\n\n}",
919 "type" : "Roo.ContentPanel",
929 "desc" : "Fires when this tab is created",
930 "sig" : "function (_self)\n{\n\n}",
939 "type" : "Roo.ContentPanel",
949 "desc" : "Fires when this content is scrolled",
950 "sig" : "function (_self, scrollEvent)\n{\n\n}",
959 "type" : "Roo.ContentPanel",
964 "name" : "scrollEvent",