Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get configuration options programmatically?

Does someone know a way to find out all configuration options from an ExtJS control programmatically? I do mean options like width, height etc. as described in the EXTJS documentation.

like image 203
TypeScript Fan Avatar asked Dec 07 '11 20:12

TypeScript Fan


1 Answers

If you want to access the config options that were passed to a particular Component, then you can access these from this.initialConfig.

If you want to get a list of all possible config options that could be passed, then this can't really be done from within ExtJS framework itself. Basically you are limited by the fact that not all config options are listed in prototype - many which default to undefined are just checked for programmatically.

You can extract this data from Ext JS doc-comments using jsduck to export the docs in JSON format, from which you can filter out the config options.

like image 189
Rene Saarsoo Avatar answered Oct 08 '22 19:10

Rene Saarsoo