Skip to content
Discussion options

You must be logged in to vote

Hi @rileydanejohnston,
the ToolPalette is originally bound in the toolPaletteModule:

const toolPaletteModule = new ContainerModule((bind, _unbind, isBound, rebind) => {
    bind(ToolPalette).toSelf().inSingletonScope();
    bind(TYPES.IUIExtension).toService(ToolPalette);
    configureActionHandler({ bind, isBound }, EnableToolPaletteAction.KIND, ToolPalette);
    configureActionHandler({ bind, isBound }, EnableDefaultToolsAction.KIND, ToolPalette);
});

If you want to use your custom implementation you simply have to rebind the ToolPalette in one of your DI modules:

const taskListDiagramModule = new ContainerModule((bind, unbind, isBound, rebind) => {
    // ...
    rebind(ToolPalette).to(M…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tortmayr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants