X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.ContentPanel.json;fp=docs%2Fsymbols%2FRoo.ContentPanel.json;h=4933ae216f925bde6a360c5e336d31af44ea452d;hb=9ff8ded6bbbd258ecd646184ba26020874e2c085;hp=0000000000000000000000000000000000000000;hpb=2542b67d1a0768025056f2f330bfe50b64d1ad38;p=roojs1 diff --git a/docs/symbols/Roo.ContentPanel.json b/docs/symbols/Roo.ContentPanel.json new file mode 100644 index 0000000000..4933ae216f --- /dev/null +++ b/docs/symbols/Roo.ContentPanel.json @@ -0,0 +1,886 @@ +{ + "name" : "Roo.ContentPanel", + "augments" : [ + "Roo.util.Observable" + ], + "desc" : "A basic ContentPanel element.", + "isSingleton" : false, + "isStatic" : false, + "isBuiltin" : false, + "memberOf" : "ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "el", + "type" : "String/HTMLElement/Roo.Element", + "desc" : "The container element for this panel", + "isOptional" : false + }, + { + "name" : "config", + "type" : "String/Object", + "desc" : "A string to set only the title or a config object", + "isOptional" : false + }, + { + "name" : "content", + "type" : "String", + "desc" : "(optional) Set the HTML content for this panel", + "isOptional" : false + }, + { + "name" : "region", + "type" : "String", + "desc" : "(optional) Used by xtype constructors to add to regions. (values center,east,west,south,north)", + "isOptional" : false + } + ], + "returns" : [ + ], + "config" : [ + { + "name" : "loadOnce", + "type" : "Boolean", + "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "listeners", + "type" : "Object", + "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", + "memberOf" : "Roo.util.Observable", + "values" : [ + ] + }, + { + "name" : "autoScroll", + "type" : "Boolean", + "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "fitToFrame", + "type" : "Boolean", + "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "background", + "type" : "Boolean", + "desc" : "True if the panel should not be activated when it is added (defaults to false)", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "toolbar", + "type" : "Toolbar", + "desc" : "A toolbar for this panel", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "region", + "type" : "String", + "desc" : "which region to put this panel on (when used with xtype constructors)", + "memberOf" : "Roo.ContentPanel", + "values" : [ + "(center", + "north", + "south", + "east", + "west)" + ] + }, + { + "name" : "content", + "type" : "String", + "desc" : "Raw content to fill content panel with (uses setContent on construction.)", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "title", + "type" : "String", + "desc" : "The title for this panel", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "autoCreate", + "type" : "Boolean/Object", + "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "fitContainer", + "type" : "Boolean", + "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "closable", + "type" : "Boolean", + "desc" : "True if the panel can be closed/removed", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "params", + "type" : "String/Object", + "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "adjustments", + "type" : "Array", + "desc" : "Values to add to the width/height when doing a {@link #fitToFrame} (default is [0, 0])", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "url", + "type" : "String", + "desc" : "Calls {@link #setUrl} with this value", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + }, + { + "name" : "resizeEl", + "type" : "String/HTMLElement/Element", + "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)", + "memberOf" : "Roo.ContentPanel", + "values" : [ + ] + } + ], + "methods" : [ + { + "name" : "load", + "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "url", + "type" : "Object/String/Function", + "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
\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
\nThe only required property is url. The optional properties nocache, text and scripts\nare shorthand for disableCaching, indicatorText and loadScripts and are used to set their associated property on this panel UpdateManager instance.", + "isOptional" : false + }, + { + "name" : "params", + "type" : "String/Object", + "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}", + "isOptional" : false + }, + { + "name" : "callback", + "type" : "Function", + "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)", + "isOptional" : false + }, + { + "name" : "discardUrl", + "type" : "Boolean", + "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.", + "isOptional" : false + } + ], + "returns" : [ + { + "name" : "", + "type" : "Roo.ContentPanel", + "desc" : "this" + } + ] + }, + { + "name" : "getUpdateManager", + "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + { + "name" : "", + "type" : "Roo.UpdateManager", + "desc" : "The UpdateManager" + } + ] + }, + { + "name" : "isClosable", + "desc" : "Returns true is this panel was configured to be closable", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + { + "name" : "", + "type" : "Boolean", + "desc" : "" + } + ] + }, + { + "name" : "destroy", + "desc" : "Destroys this panel", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + ] + }, + { + "name" : "getEl", + "desc" : "Returns this panel's element - used by regiosn to add.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + { + "name" : "", + "type" : "Roo.Element", + "desc" : "" + } + ] + }, + { + "name" : "setContent", + "desc" : "Updates this panel's element", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "content", + "type" : "String", + "desc" : "The new content", + "isOptional" : false + }, + { + "name" : "loadScripts", + "type" : "Boolean", + "desc" : "(optional) true to look for and process scripts", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "getId", + "desc" : "Returns this panel's id", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + { + "name" : "", + "type" : "String", + "desc" : "" + } + ] + }, + { + "name" : "addxtype", + "desc" : "Adds a xtype elements to the panel - currently only supports Forms, View, JsonView.\n
\n\nlayout.addxtype({\n       xtype : 'Form',\n       items: [ .... ]\n   }\n);\n\n
", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "cfg", + "type" : "Object", + "desc" : "Xtype definition of item to add.", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "refresh", + "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.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + ] + }, + { + "name" : "getTitle", + "desc" : "Returns this panel's title", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + { + "name" : "", + "type" : "String", + "desc" : "" + } + ] + }, + { + "name" : "setTitle", + "desc" : "Set this panel's title", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "title", + "type" : "String", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "getToolbar", + "desc" : "Returns the toolbar for this Panel if one was configured.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + { + "name" : "", + "type" : "Roo.Toolbar", + "desc" : "" + } + ] + }, + { + "name" : "setUrl", + "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.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.ContentPanel", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "url", + "type" : "String/Function", + "desc" : "The URL to load the content from or a function to call to get the URL", + "isOptional" : false + }, + { + "name" : "params", + "type" : "String/Object", + "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)", + "isOptional" : false + }, + { + "name" : "loadOnce", + "type" : "Boolean", + "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)", + "isOptional" : false + } + ], + "returns" : [ + { + "name" : "", + "type" : "Roo.UpdateManager", + "desc" : "The UpdateManager" + } + ] + }, + { + "name" : "purgeListeners", + "desc" : "Removes all listeners for this object", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + ], + "returns" : [ + ] + }, + { + "name" : "on", + "desc" : "Appends an event handler to this element (shorthand for addListener)", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event to listen for", + "isOptional" : false + }, + { + "name" : "handler", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", + "isOptional" : false + }, + { + "name" : "options", + "type" : "Object", + "desc" : "(optional)", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "un", + "desc" : "Removes a listener (shorthand for removeListener)", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event to listen for", + "isOptional" : false + }, + { + "name" : "handler", + "type" : "Function", + "desc" : "The handler to remove", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope (this object) for the handler", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "addEvents", + "desc" : "Used to define events on this Observable", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "object", + "type" : "Object", + "desc" : "The object with the events defined", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "releaseCapture", + "desc" : "Removes all added captures from the Observable.", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "o", + "type" : "Observable", + "desc" : "The Observable to release", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "removeListener", + "desc" : "Removes a listener", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event to listen for", + "isOptional" : false + }, + { + "name" : "handler", + "type" : "Function", + "desc" : "The handler to remove", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope (this object) for the handler", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "fireEvent", + "desc" : "Fires the specified event with the passed parameters (minus the event name).", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "eventName", + "type" : "String", + "desc" : "", + "isOptional" : false + }, + { + "name" : "args", + "type" : "Object...", + "desc" : "Variable number of parameters are passed to handlers", + "isOptional" : false + } + ], + "returns" : [ + { + "name" : "", + "type" : "Boolean", + "desc" : "returns false if any of the handlers return false otherwise it returns true" + } + ] + }, + { + "name" : "hasListener", + "desc" : "Checks to see if this object has any listeners for a specified event", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "eventName", + "type" : "String", + "desc" : "The name of the event to check for", + "isOptional" : false + } + ], + "returns" : [ + { + "name" : "", + "type" : "Boolean", + "desc" : "True if the event is being listened for, else false" + } + ] + }, + { + "name" : "capture", + "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\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", + "isStatic" : true, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "o", + "type" : "Observable", + "desc" : "The Observable to capture", + "isOptional" : false + }, + { + "name" : "fn", + "type" : "Function", + "desc" : "The function to call", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope (this object) for the fn", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "addListener", + "desc" : "Appends an event handler to this component", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.util.Observable", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "eventName", + "type" : "String", + "desc" : "The type of event to listen for", + "isOptional" : false + }, + { + "name" : "handler", + "type" : "Function", + "desc" : "The method the event invokes", + "isOptional" : false + }, + { + "name" : "scope", + "type" : "Object", + "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", + "isOptional" : false + }, + { + "name" : "options", + "type" : "Object", + "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\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
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\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
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\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
", + "isOptional" : false + } + ], + "returns" : [ + ] + } + ], + "events" : [ + { + "name" : "deactivate", + "desc" : "Fires when this panel is activated.", + "memberOf" : "", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "resize", + "desc" : "Fires when this panel is resized if fitToFrame is true.", + "memberOf" : "", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + }, + { + "name" : "width", + "type" : "Number", + "desc" : "The width after any component adjustments", + "isOptional" : false + }, + { + "name" : "height", + "type" : "Number", + "desc" : "The height after any component adjustments", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "render", + "desc" : "Fires when this tab is created", + "memberOf" : "", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + }, + { + "name" : "activate", + "desc" : "Fires when this panel is activated.", + "memberOf" : "", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [ + ] + } + ] +} \ No newline at end of file