How to get configuration parameters programmatically?

Does anyone know how to programmatically determine all configuration parameters from an ExtJS control? I mean parameters like width, height, etc., as described in the EXTJS documentation.

+6
source share
1 answer

If you want to access the configuration parameters that were passed to a particular component, you can access them from this.initialConfig .

If you want to get a list of all the possible configuration parameters that can be passed, then this cannot be done from the ExtJS framework itself. Basically, you are limited by the fact that not all configuration parameters are listed in the prototype - many of which, by default for undefined, are only checked programmatically.

You can extract this data from Ext JS doc comments using jsduck to export JSON documents from which you can filter from configuration settings.

+4
source

Source: https://habr.com/ru/post/903330/


All Articles