Skip to content

Commit

Permalink
Merge pull request #3364 from Sa-Schmi/plugin-doc-typos
Browse files Browse the repository at this point in the history
[DOC] Bug in Plugins Placements JS-Example
  • Loading branch information
benjaminpkane authored Aug 17, 2023
2 parents f239d32 + 0e1065a commit 655532d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/source/plugins/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,16 @@ below:
types,
} from "@fiftyone/operators";

const PLUGIN_NAME = "@my-org/my-plugin";

class OpenEmbeddingsPanel extends Operator {
get config() {
return new OperatorConfig({
name: "example_open_embeddings_panel",
label: "Example: open Embeddings panel",
});
}
useHooks(): {
useHooks() {
const openPanelOperator = useOperatorExecutor("open_panel");
return { openPanelOperator };
}
Expand All @@ -282,7 +284,7 @@ below:
}
}

registerOperator(OpenEmbeddingsPanel, "@voxel51/examples");
registerOperator(OpenEmbeddingsPanel, PLUGIN_NAME);

Plugin runtime
--------------
Expand Down

0 comments on commit 655532d

Please sign in to comment.