VisNetwork.Blazor
2.2.0
dotnet add package VisNetwork.Blazor --version 2.2.0
NuGet\Install-Package VisNetwork.Blazor -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VisNetwork.Blazor" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VisNetwork.Blazor --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VisNetwork.Blazor, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VisNetwork.Blazor as a Cake Addin #addin nuget:?package=VisNetwork.Blazor&version=2.2.0 // Install VisNetwork.Blazor as a Cake Tool #tool nuget:?package=VisNetwork.Blazor&version=2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VisNetwork.Blazor
Blazor component for vis.js/vis-network.
Demo
You may see a working example here
Get Started
Install the NuGet package: VisNetwork.Blazor
Install using the Package Manager in your IDE or using the command line:
dotnet add package VisNetwork.Blazor
- Add the following using directives to your root
_Imports.razor
file, or any other .razor file where you want to use vis-network.
@using VisNetwork.Blazor
- Add the following to the relevant sections of
Program.cs
.
using VisNetwork.Blazor;
builder.Services.AddVisNetwork();
vis-network
- Add a
Network
component in your .razor file and configure it as you need. See Sample-app for example usage.
<Network Id="my-id" Data="@data" />
Providing custom options
To provide custom options the Options
parameter can be used.
<Network Id="my-id" Data="@data" Options="NetworkOptions" />
private NetworkOptions NetworkOptions(Network network)
{
return new NetworkOptions
{
AutoResize = true,
Nodes = new NodeOption
{
BorderWidth = 1
}
};
}
Options can also be applied to the Network
using the SetOptions
API method.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Components (>= 6.0.27)
- Microsoft.AspNetCore.Components.Web (>= 6.0.27)
-
net7.0
- Microsoft.AspNetCore.Components (>= 7.0.16)
- Microsoft.AspNetCore.Components.Web (>= 7.0.16)
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.2)
- Microsoft.AspNetCore.Components.Web (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.2.0 | 2,998 | 3/9/2024 |
2.1.0 | 1,708 | 11/18/2023 |
2.0.3 | 1,021 | 7/14/2023 |
2.0.2 | 1,477 | 3/4/2023 |
2.0.1 | 415 | 2/2/2023 |
2.0.0 | 597 | 12/30/2022 |
1.0.2 | 578 | 12/30/2022 |
1.0.1 | 3,047 | 12/17/2022 |
1.0.0 | 730 | 11/20/2022 |
1.0.0-preview.0 | 106 | 11/20/2022 |
0.0.10 | 662 | 9/13/2022 |
0.0.9 | 428 | 9/10/2022 |
0.0.8 | 2,154 | 3/2/2022 |
0.0.7 | 500 | 10/15/2021 |
0.0.6 | 379 | 10/6/2021 |
0.0.5 | 452 | 5/21/2021 |
0.0.4 | 590 | 11/25/2020 |
0.0.3 | 434 | 11/23/2020 |