I am using the OpenUI5 framework to create a custom component. I want to access some config settings that I set in the component's manifest.json file. According to the documentation I can create some name/value pairs within a "config" object nested inside the "sap.ui5" object:
config: Static configuration; specify the name-value pairs that you need in your component.
and i should be able to access those settings from my component like so:
this.getMetadata().getManifest();
After calling that method and inspecting the returned sap.ui5 object in the console, the only objects available are "dependencies", "extends", "models", and "rootView". No "config" object.
How can i access my config settings in the manifest.json?
snippet of manifest.json:
...
"sap.ui5": {
"_version": "1.1.0",
"rootView": {
"viewName": "ctg.openui5.components.webmap.view.Map",
"type": "HTML"
},
"dependencies": {
"minUI5Version": "1.30",
"libs": {
"sap.m": {}
}
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ctg.openui5.components.webmap.i18n.i18n"
}
}
},
"config": {
"lat": 1,
"lon": 2
}
}