Hi everyone,
I have several IG in my application and for each of them I want to apply the same Javascript Initialization Code attribute
function(config) {
config.reportSettingsArea = false;
return config;
}
I tried to create a function in my shared components, so if I would change the options in the future I will NOT need to amend each IG one per one, but only amend the shared component once
function initIG(config) {
config.reportSettingsArea = false;
return config;
}
And call it from my IG Javascript Initialization Code :
initIG(config)
However, when doing it, my IG is no more visible and I get following error in the console
ReferenceError: config is not defined
But when I paste my code directly it works well
function(config) {
config.reportSettingsArea = false;
return config;
}
Anyone can help my about this topic please?
Thanks
Best regards,