API Reference
VisNetworkInteractionOptions
Interaction configuration options.
Inheritance
- Object
- VisNetworkInteractionOptions
Constructors
public VisNetworkInteractionOptions() #Methods
public VisNetworkInteractionOptions WithDragNodes(Boolean enabled = true) #VisNetworkInteractionOptionsEnables or disables node dragging.
Parameters
- enabled System.Boolean = true
- True to allow dragging nodes.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithDragView(Boolean enabled = true) #VisNetworkInteractionOptionsEnables or disables view dragging.
Parameters
- enabled System.Boolean = true
- True to allow dragging the view.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithHideEdgesOnDrag(Boolean hide = true) #VisNetworkInteractionOptionsSets HideEdgesOnDrag.
Parameters
- hide System.Boolean = true
- Whether to hide edges while dragging.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithHideEdgesOnZoom(Boolean hide = true) #VisNetworkInteractionOptionsSets HideEdgesOnZoom.
Parameters
- hide System.Boolean = true
- Whether to hide edges when zooming.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithHideNodesOnDrag(Boolean hide = true) #VisNetworkInteractionOptionsSets HideNodesOnDrag.
Parameters
- hide System.Boolean = true
- Whether to hide nodes when dragging.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithHover(Boolean enabled = true) #VisNetworkInteractionOptionsEnables or disables hover events.
Parameters
- enabled System.Boolean = true
- True to enable hover events.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithHoverConnectedEdges(Boolean enabled = true) #VisNetworkInteractionOptionsEnables or disables highlighting of edges connected to a hovered node.
Parameters
- enabled System.Boolean = true
- True to highlight connected edges.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithKeyboard(Action<VisNetworkKeyboardOptions> configure) #VisNetworkInteractionOptionsEnables or disables basic keyboard navigation.
Parameters
- enabled System.Boolean = true
- True to enable keyboard navigation.
Returns
The current VisNetworkInteractionOptions instance.
WithKeyboard(HtmlForgeX.VisNetworkKeyboardOptions keyboardOptions) #Sets keyboard options.
Parameters
- keyboardOptions HtmlForgeX.VisNetworkKeyboardOptions
- Options to apply.
Returns
The current VisNetworkInteractionOptions instance.
WithKeyboard(System.Action{HtmlForgeX.VisNetworkKeyboardOptions} configure) #Configures keyboard options via delegate.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkKeyboardOptions}
- Delegate to configure keyboard options.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithMultiselect(Boolean enabled = true) #VisNetworkInteractionOptionsEnables or disables multiple selection of nodes.
Parameters
- enabled System.Boolean = true
- True to allow multiple selection.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithSelectable(Boolean selectable = true) #VisNetworkInteractionOptionsSets whether nodes can be selected.
Parameters
- selectable System.Boolean = true
- True to allow selection.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithSelectConnectedEdges(Boolean select = true) #VisNetworkInteractionOptionsSets whether selecting a node also selects connected edges.
Parameters
- select System.Boolean = true
- True to select connected edges.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithTooltipDelay(Int32 delay) #VisNetworkInteractionOptionsSets the tooltip delay.
Parameters
- delay System.Int32
- Delay in milliseconds.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithZoomSpeed(Double speed) #VisNetworkInteractionOptionsSets the ZoomSpeed value.
Parameters
- speed System.Double
- Zoom speed factor.
Returns
The current VisNetworkInteractionOptions instance.
public VisNetworkInteractionOptions WithZoomView(Boolean enabled = true) #VisNetworkInteractionOptionsEnables or disables zooming of the view.
Parameters
- enabled System.Boolean = true
- True to enable zooming.
Returns
The current VisNetworkInteractionOptions instance.
Inherited Methods
Properties
public Nullable<Boolean> DragNodes { get; set; } #JsonPropertyName("dragNodes") JsonIgnore(Condition = 3)Gets or sets a value indicating whether nodes can be dragged.
public Nullable<Boolean> DragView { get; set; } #JsonPropertyName("dragView") JsonIgnore(Condition = 3)Gets or sets a value indicating whether the view can be panned by dragging.
public Nullable<Boolean> HideEdgesOnDrag { get; set; } #JsonPropertyName("hideEdgesOnDrag") JsonIgnore(Condition = 3)Gets or sets a value indicating whether edges are hidden during dragging.
public Nullable<Boolean> HideEdgesOnZoom { get; set; } #JsonPropertyName("hideEdgesOnZoom") JsonIgnore(Condition = 3)Gets or sets a value indicating whether edges are hidden while zooming.
public Nullable<Boolean> HideNodesOnDrag { get; set; } #JsonPropertyName("hideNodesOnDrag") JsonIgnore(Condition = 3)Gets or sets a value indicating whether nodes are hidden while dragging.
public Nullable<Boolean> Hover { get; set; } #JsonPropertyName("hover") JsonIgnore(Condition = 3)Gets or sets a value indicating whether hover interactions are enabled.
public Nullable<Boolean> HoverConnectedEdges { get; set; } #JsonPropertyName("hoverConnectedEdges") JsonIgnore(Condition = 3)Gets or sets a value indicating whether edges connected to a hovered node are highlighted.
public Object Keyboard { get; set; } #JsonPropertyName("keyboard") JsonIgnore(Condition = 3)Gets or sets keyboard interaction options or a boolean value.
public Nullable<Boolean> Multiselect { get; set; } #JsonPropertyName("multiselect") JsonIgnore(Condition = 3)Gets or sets a value indicating whether multiple nodes can be selected.
public Nullable<Boolean> Selectable { get; set; } #JsonPropertyName("selectable") JsonIgnore(Condition = 3)Gets or sets a value indicating whether nodes are selectable.
public Nullable<Boolean> SelectConnectedEdges { get; set; } #JsonPropertyName("selectConnectedEdges") JsonIgnore(Condition = 3)Gets or sets a value indicating whether selecting a node also selects connected edges.
public Nullable<Int32> TooltipDelay { get; set; } #JsonPropertyName("tooltipDelay") JsonIgnore(Condition = 3)Gets or sets the delay before tooltips appear in milliseconds.
public Nullable<Boolean> ZoomView { get; set; } #JsonPropertyName("zoomView") JsonIgnore(Condition = 3)Gets or sets a value indicating whether zooming is allowed.
public Nullable<Double> ZoomSpeed { get; set; } #JsonPropertyName("zoomSpeed") JsonIgnore(Condition = 3)Gets or sets the zoom speed factor.