Module's should have an object for each config parameter that includes a friendly name, type, and possibly validation rules.
module.config = {
"name": {
"name": "Instance Name",
"type": "string"
},
"host": {
"name": "Hostname or IP Address",
"type": "string"
},
"port": {
"name": "Port",
"type": "number",
}.
"version": {
"name": "Software Version",
"type": "select",
"options": {
"6": "v6",
"7": "v7.8.9 or higher"
},
},
"use_ssl": {
"name": "Use secure connection",
"type": "boolean"
}
}
Module's should have an object for each config parameter that includes a friendly name, type, and possibly validation rules.
For example: