Skip to content

Commit

Permalink
docs: update plugin name in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hasith committed Sep 8, 2024
1 parent ea931ec commit 848edae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/plugin-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Now in the new plugin folder, create a file called `package.json` with the follo

```json
{
"name": "@productled/tooltips",
"name": "@productled/<plugin-name>",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -98,10 +98,7 @@ export class PluginClass implements Plugin {
}

removeAll(): void {
const spotlights = document.querySelectorAll('.productled-' + this.key);
spotlights.forEach(spotlight => {
spotlight.remove();
});
// Remove all plugin instances from DOM
}
}
```
Expand Down

0 comments on commit 848edae

Please sign in to comment.