Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
921 stars 177 forks source link

Read only mode #193

Closed DarkEyeDragon closed 2 years ago

DarkEyeDragon commented 2 years ago

Is there a way to make diagrams read only (so you cant drag nodes around and such)?

Couldn't find anything about it on the docs.

314159265meow commented 2 years ago

Hi, there is a Locked property for that if you haven't seen it yet.

https://blazor-diagrams.zhaytam.com/demos/locked
https://github.com/Blazor-Diagrams/Blazor.Diagrams/blob/ef9309c310f26a4828569c26fb8ebefa0278f83b/samples/SharedDemo/Demos/Locked.razor.cs#L34

Or do you want to disable other things that aren't covered by Locked?

zHaytam commented 2 years ago

I'll close this since there was no response.