Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramTooltip - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramTooltip

    Represents the textual content which appears when the mouse hovers over an element of the diagram.

    Inheritance
    System.Object
    SfBaseComponent
    Syncfusion.Blazor.Diagrams.Internal.SfDiagramBaseExtension
    DiagramsTooltip
    DiagramTooltip
    Inherited Members
    DiagramsTooltip.OnParametersSetAsync()
    DiagramsTooltip.mainParent
    DiagramsTooltip.Animation
    DiagramsTooltip.Content
    DiagramsTooltip.Height
    DiagramsTooltip.OpenOn
    DiagramsTooltip.Position
    DiagramsTooltip.RelativeMode
    DiagramsTooltip.ShowTipPointer
    DiagramsTooltip.Width
    SfBaseComponent.OnAfterRenderAsync(Boolean)
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramTooltip : DiagramsTooltip, IBaseInit
    Remarks
    The Tooltip will be displayed, when dragging, resizing, rotating a node, and when the cursor hovers over any diagram elements.
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection" Constraints="DiagramConstraints.Default | DiagramConstraints.Tooltip" Tooltip="@Tooltip">
       <DiagramSnapSettings Constraints = "SnapConstraints.None" ></ DiagramSnapSettings >
    </ SfDiagram >
    @code{
       //Defines diagram's node collection
       public ObservableCollection<DiagramNode> NodeCollection { get; set; }
       // Defines position of the tooltip
       public DiagramTooltip Tooltip = new DiagramTooltip()
       {
           Content = "Nodes",
           Position = Syncfusion.Blazor.Popups.Position.TopLeft
       };
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>();
           //Defines nodes
           DiagramNode Node = new DiagramNode()
           {
               Id = "node1",
               Width = 100,
               Height = 100,
               OffsetX = 200,
               OffsetY = 200,
               Style = new NodeShapeStyle() { StrokeColor = "#6BA5D7", Fill = "#6BA5D7" },
               Constraints = NodeConstraints.Default | NodeConstraints.InheritTooltip,
           };
           NodeCollection.Add(Node);
       }
    }

    Constructors

    DiagramTooltip()

    Declaration
    public DiagramTooltip()

    Properties

    ChildContent

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    jsProperty

    Declaration
    protected override string jsProperty { get; set; }
    Property Value
    Type Description
    System.String
    Overrides
    DiagramsTooltip.jsProperty

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    Syncfusion.Blazor.Diagrams.Internal.SfDiagramBaseExtension.Dispose()

    GetJSNamespace()

    Declaration
    public string GetJSNamespace()
    Returns
    Type Description
    System.String

    Get the parent namespaces

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns asynchronous operation when the component is ready to start, having received its initial parameters from its parent in the render tree

    Overrides
    DiagramsTooltip.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved