add: example for extra column
This commit is contained in:
parent
67fb288be5
commit
f8a6b7a1ed
@ -30,7 +30,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/windingwind/zotero-addon-template#readme",
|
||||
"dependencies": {
|
||||
"zotero-plugin-toolkit": "^0.0.1"
|
||||
"zotero-plugin-toolkit": "^0.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.7.20",
|
||||
|
@ -56,11 +56,16 @@ class AddonViews extends AddonModule {
|
||||
label: "Addon Template: File Menuitem",
|
||||
oncommand: "alert('Hello World! File Menuitem.')",
|
||||
});
|
||||
|
||||
// Initialize extra columns
|
||||
this._Addon.toolkit.ItemTree.registerExample();
|
||||
}
|
||||
|
||||
public unInitViews() {
|
||||
this._Addon.toolkit.Tool.log("Uninitializing UI");
|
||||
this._Addon.toolkit.UI.removeAddonElements();
|
||||
// Remove extra columns
|
||||
this._Addon.toolkit.ItemTree.unregister("test");
|
||||
}
|
||||
|
||||
public showProgressWindow(
|
||||
|
Loading…
x
Reference in New Issue
Block a user