-
Looking to add a custom control like the built in RemoveControl to act as an Edit icon I've created a class that inherits ExecutableControl like so: `using Blazor.Diagrams.Core; namespace DiagramTests.Controls
} I had originally assumed this would be a partial, with a razor component to display the edit icon, but looking at the source, I can see RemoveControl has RemoveControlWidget.razor here Do I need to create the equivalent EditControlWidget.razor? I have tried adding: `@using Blazor.Diagrams.Core.Models.Base @if (Model is SvgNodeModel) @code
}` And I see the error when selecting the node which this control is applied to: Unhandled exception rendering component: A component couldn't be found for the user action EditControl |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had forgotten to register the above with the diagram instance!: Diagram.RegisterComponent<EditControl, EditControlWidget>(); |
Beta Was this translation helpful? Give feedback.
I had forgotten to register the above with the diagram instance!:
Diagram.RegisterComponent<EditControl, EditControlWidget>();