View Full Version : The "config object" obscurity
majorpay
6 Jul 2007, 9:42 AM
I see in many cases throughout the documentation the "config object" is listed as part of the optional constructor for many objects in Ext's library. Where do I find what the config options for this "config object" are? A good example is:
Constructor DetailsToolbarpublic function Toolbar(String/HTMLElement/Element container, [Array buttons], Object config)
Creates a new Toolbar
Parameters:
container : String/HTMLElement/Element
The id or element that will contain the toolbar
buttons : Array
(optional) array of button configs or elements to add
config : Object
The config object
tryanDLS
6 Jul 2007, 9:51 AM
They are documented in each object in the API and linked at the top of each object's page, along with properties and methods. Refer to the beta doc (http://extjs.com/deploy/ext-1.1-beta2/docs/) which is the most up to date.
majorpay
6 Jul 2007, 10:03 AM
Yes, I saw that on a few of them, but http://extjs.com/deploy/ext-1.1-beta2/docs/output/Ext.Toolbar.html#Toolbar (i.e.) does not have a link for config options. Searching the source didn't give much insight either... Perhaps this item doesn't have config options?
tryanDLS
6 Jul 2007, 11:40 AM
Yes, I saw that on a few of them, but http://extjs.com/deploy/ext-1.1-beta2/docs/output/Ext.Toolbar.html#Toolbar (i.e.) does not have a link for config options. Searching the source didn't give much insight either... Perhaps this item doesn't have config options?
Looking at the code, I'm not sure that the config arg for Toolbar is used for anything yet.
andrei.neculau
16 Jul 2007, 3:02 AM
They are documented in each object in the API and linked at the top of each object's page, along with properties and methods. Refer to the beta doc (http://extjs.com/deploy/ext-1.1-beta2/docs/) which is the most up to date.
LATER EDIT: I'm blind. They are really where they are supposed to be. A link to "Config Options" near the links for methods, properties, etc. Somehow I have missed on those...
EARLIER:
I was also wondering around for some config-object options. These options are not found on the "main" documentation page for each API, but in the JS source code. So for example, in order to see the ContentPanel's config options, you need to go to it's documentation page (where you see the methods, properties, etc.) and click at the top on "Defined in: ContentPanels.js" ;)
PS: I wonder why are they not included in the main page? It is actually easier like that (it also resembles how YUI documents these config objects).
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.