
Originally Posted by
mitchellsimoens
Example of a class that can't be created without a config object?
Here are some I found by inspecting the JSDuck documentation json.
Ext.Component
Ext.data.reader.Reader
Ext.slider.Slider
Ext.Map
Ext.layout.Abstract
Since posting my OP I can now see that the high proportion of classes having a non optional config constructor method parameter is because the list of classes includes some common base classes such as Component and Layout.Abstract.
Even so my original confusion remains... is it possible to identify which config properties are mandatory for a class that has a mandatory config constructor parameter?
The basis for my question is the following in the JSDuck generated doc json. See option "optional": false,
PHP Code:
"method": [
{
"tagname": "method",
"name": "constructor",
"owner": "Ext.data.reader.Reader",
"doc": "\n",
"params": [
{
"type": "Object",
"name": "config",
"doc": "\n",
"optional": false,
"default": null,
"properties": [
],
"html_type": "Object"
}
],