OskarZyg
OskarZyg

Reputation: 145

How do I access a JavaScript reference for the network object created by VisNetwork.Blazor?

Using the VisNetwork.Blazor library, I can get a Network instance through using the Component:

<Network @ref="network" Data="@data"/>

Which binds to the network property in my C# code.

In the documentation, there is an event callback on the Network: object SetupCompletedCallback, the documentation for which states:

This event is fired when the network has been setup through interop and the JavaScript network object is available.

However, I cannot find a way to access the aforementioned JavaScript reference in order to run Javascript code directly on the object.

How do get a JavaScript reference to the Network?

Upvotes: 0

Views: 19

Answers (0)

Related Questions