示例#1
0
 public static ValueTask SetData(this IJSRuntime jsRuntime, ElementReference element, DotNetObjectReference <Network> component, NetworkData data) =>
 jsRuntime.InvokeVoidAsync($"{VisNetworkInteropName}.setData", element, SerializeIgnoreNull(data));
示例#2
0
 // Gloabl
 public static ValueTask CreateNetwork(this IJSRuntime jsRuntime, ElementReference element, DotNetObjectReference <Network> component, NetworkOptions options, NetworkData data) =>
 jsRuntime.InvokeVoidAsync($"{VisNetworkInteropName}.create", element, component, SerializeIgnoreNull(options), SerializeIgnoreNull(data));