by gexptwo » Sun Sep 18, 2022 2:55 pm
I'm writing a display Addon. Following the Getting Started page, I see 'version' specified in info.json. I would like my display addon to show the version, I'm trying not to define the version in multiple places.
My actions_add.js has
Code: Select all
var dlg = uitools.openDialog('display', {
Is there a way for my display.js to access the 'version'? I've tried
Code: Select all
function init(params) {
var try1 = this.version;
var try2 = params.addon.version;
var try3 = this.addon.version;
}
but not found. I saw the config.js addon parameter should have access but I think that would require opening the addon config first.
I'm writing a display Addon. Following the Getting Started page, I see 'version' specified in info.json. I would like my display addon to show the version, I'm trying not to define the version in multiple places.
My actions_add.js has
[code]var dlg = uitools.openDialog('display', {[/code]
Is there a way for my display.js to access the 'version'? I've tried
[code]function init(params) {
var try1 = this.version;
var try2 = params.addon.version;
var try3 = this.addon.version;
}[/code]
but not found. I saw the config.js addon parameter should have access but I think that would require opening the addon config first.