API Reference
VisNetworkSettings
Settings sub-builder for VisNetwork to keep the root API small. Returned by VisNetwork.Settings(...) and chains back to the root via End.
Inheritance
- Object
- VisNetworkSettings
Methods
public VisNetworkSettings DataFromUrl(String url, Action<VisNetworkRemoteDataOptions> configure = null) #VisNetworkSettingsLoads nodes/edges from a remote endpoint (avoids embedding huge graphs into HTML). The endpoint should return JSON: { "nodes": [...], "edges": [...] }.
Parameters
- url System.String
- configure System.Action{HtmlForgeX.VisNetworkRemoteDataOptions} = null
public VisNetworkSettings DisablePhysicsAfterStabilization(Boolean enable = true) #VisNetworkSettingsDisables physics after stabilization completes (improves responsiveness for large graphs).
Parameters
- enable System.Boolean = true
public VisNetworkSettings Events(Action<VisNetworkEvents> configure) #VisNetworkSettingsConfigures event handlers.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkEvents}
public VisNetworkSettings Group(String groupName, Action<VisNetworkGroupOptions> configure) #VisNetworkSettingsConfigures a node group for consistent styling.
Parameters
- groupName System.String
- configure System.Action{HtmlForgeX.VisNetworkGroupOptions}
public VisNetworkSettings HierarchicalLayout(VisNetworkLayoutDirection direction = Ud) #VisNetworkSettingsEnables hierarchical layout.
Parameters
- direction HtmlForgeX.VisNetworkLayoutDirection = Ud
public VisNetworkSettings Id(String id) #VisNetworkSettingsSets the unique identifier for the network container.
Parameters
- id System.String
public VisNetworkSettings Interaction(Action<VisNetworkInteractionOptions> configure) #VisNetworkSettingsConfigures interaction options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkInteractionOptions}
public VisNetworkSettings Layout(Action<VisNetworkLayoutOptions> configure) #VisNetworkSettingsConfigures layout options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkLayoutOptions}
public VisNetworkSettings LazyInit(Boolean enable = true) #VisNetworkSettingsWhen enabled, initialization is deferred until the diagram becomes visible (e.g., inside inactive tabs/accordions/wizard steps).
Parameters
- enable System.Boolean = true
public VisNetworkSettings LoadingBar(Boolean enable = true) #VisNetworkSettingsEnable/disable the loading bar UI.
Parameters
- enable System.Boolean = true
public VisNetworkSettings Manipulation(Action<VisNetworkManipulationOptions> configure) #VisNetworkSettingsConfigures manipulation options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkManipulationOptions}
public VisNetworkSettings Options(Action<VisNetworkOptions> configure) #VisNetworkSettingsConfigures options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkOptions}
public VisNetworkSettings PerformancePreset(VisNetworkPerformancePreset preset) #VisNetworkSettingsApplies an opinionated performance preset (useful for hundreds/thousands of nodes/edges).
Parameters
- preset HtmlForgeX.VisNetworkPerformancePreset
public VisNetworkSettings Physics(Action<VisNetworkPhysicsOptions> configure) #VisNetworkSettingsConfigures physics options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkPhysicsOptions}
public VisNetworkSettings Physics(Boolean enabled = true) #VisNetworkSettingsEnable/disable physics simulation.
Parameters
- enabled System.Boolean = true
public VisNetworkSettings Size(String width, String height) #VisNetworkSettingsSets the size of the network container.
Parameters
- width System.String
- height System.String