Home > zotero-plugin-toolkit > ProgressWindowHelper
ProgressWindow helper.
Signature:
export declare class ProgressWindowHelper
Show a popup with success icon
const tool = new ZoteroTool();
tool.createProgressWindow("Addon").createLine({
type: "success",
text: "Finish"
progress: 100,
}).show();
Show a popup and change line content
const compat = new ZoteroCompat();
const tool = new ZoteroTool();
const popupWin = tool.createProgressWindow("Addon").createLine({
text: "Loading"
progress: 50,
}).show(-1);
// Do operations
compat.getGlobal("setTimeout")(()=>{
popupWin.changeLine({
text: "Finish",
progress: 100,
});
}, 3000);
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
Zotero.ProgressWindow |
Method |
Modifiers |
Description |
---|---|---|
Change the line content | ||
Create a new line | ||
|
Set custom icon uri for progress window | |