Hi there,
I am writing a plugin that adds a preference pane. This works fine. Now what I want to do is to update some labels in the pane.
So, I want to launch a functionn after the panel is loaded.
1. I didn't manage to locate any events to do this (e.g., Zotero.PreferencePanes.register observer). Is there any?
2. Instead, in preferences.xhtml I have this:
Now, I have a separate file prefs-abs.js, with the onLoad function:
Should the Init() be async?
When the plugin loads, I get the following error:
Obviously, Zotero can not find the definition. Where should I store prefs-abs.js? I have it in the root dir where prefs.js is.
3. Is there another way to get access to a label in the preferences pane?
Thank you for any help.