Home > zotero-plugin-toolkit > BasicTool
Basic APIs with Zotero 6 & newer (7) compatibility. See also https://www.zotero.org/support/dev/zotero\_7\_for\_developers
Signature:
export declare class BasicTool
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
BasicOptions |
configurations. | |
|
Console |
(Optional) | |
|
BasicOptions | ||
|
string |
Method |
Modifiers |
Description |
---|---|---|
|
Ensure the main window listener is registered. | |
|
Ensure the plugin listener is registered. | |
|
Remove all Zotero event listener callbacks when the last callback is removed. | |
Add a Zotero event listener callback | ||
Create an XUL element For Zotero 6, use For Zotero 7+, use | ||
Get global variables. | ||
| ||
If it's an XUL element | ||
Output to both Zotero.debug and console.log | ||
Patch a function | ||
Remove a Zotero event listener callback | ||