This sample project shows how to integrate GoJS in a Blazor project.
The project contains GoJSBlazor.sln
for Visual Studio and a launch.json
for VS Code.
GoJS is used in Index.razor.cs
, with the Diagram div in Index.razor
. GoJS is initialized from the Blazor lifecycle method OnAfterRender
. All GoJS JavaScript code is stored in the wwwroot/js
folder, in gojs-scripts.js
.
There are two buttons on Index.razor
that demonstrate saving and loading the diagram, via JS Interop.
This project uses GoJS, and all GoJS code must be written in JavaScript or TypeScript. If you wish to only author diagrams in C#, and to use static images in your Blazor app, it is possible to use GoDiagram instead. GoDiagram is a C# library based on the GoJS API for WinForms and headless C# environments.
Northwoods Software offers a month of free developer-to-developer support for GoJS to help you get started on your project.
Read and search the official GoJS forum for any topics related to your questions.
Posting in the forum is the fastest and most effective way of obtaining support for any GoJS related inquiries. Please register for support at Northwoods Software's registration form before posting in the forum.
For any nontechnical questions about GoJS, such as about sales or licensing, please visit Northwoods Software's contact form.
The GoJS software license.
Copyright (c) Northwoods Software Corporation