Blazor

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

    Show / Hide Table of Contents

    Class DiagramTemplates

    Represents the template’s content to the node, annotation, and user handles. The User can define any HTML content as a template.

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    Syncfusion.Blazor.SfBaseExtension
    DiagramTemplates
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramTemplates : SfBaseExtension
    Remarks

    Represents the template’s content to the node, annotation, and user handles. The User can define any HTML content as a template.

    Constructors

    DiagramTemplates()

    Declaration
    public DiagramTemplates()

    Properties

    AnnotationTemplate

    Represents the template content to the annotation. By default, it will be undefined.

    Declaration
    public RenderFragment<object> AnnotationTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<System.Object>

    AnnotationTemplateData

    Sets the template data to the annotation.

    Declaration
    public List<Dictionary<string, object>> AnnotationTemplateData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String, System.Object>>

    AnnotationTemplateID

    Sets the Id to the annotation template.

    Declaration
    public string AnnotationTemplateID { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    AnnotationTemplateID needs to be unique to use. When creating an AnnotationTemplate, the user should not provide the same id to other AnnotationTemplates.

    AnnotationTemplateItems

    Defines the collection of annotation templates.

    Declaration
    public List<string> AnnotationTemplateItems { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    ChildContent

    Represents a segment of UI content, implemented.

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

    NodeTemplate

    Represents the template content to the node. By default, it will be undefined.

    Declaration
    public RenderFragment<object> NodeTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<System.Object>

    NodeTemplateData

    Sets the template data to the node.

    Declaration
    public List<Dictionary<string, object>> NodeTemplateData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String, System.Object>>

    NodeTemplateID

    Sets the id to the node template.

    Declaration
    public string NodeTemplateID { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    NodeTemplateID needs to be unique to use. When creating a NodeTemplate, the user should not provide the same id to other NodeTemplates.

    NodeTemplateItems

    Defines the collection of node templates.

    Declaration
    public List<string> NodeTemplateItems { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    UserHandleTemplate

    Represents the template content to the userhandle. By default, it will be undefined.

    Declaration
    public RenderFragment<object> UserHandleTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<System.Object>

    UserHandleTemplateData

    Sets the template data to the userhandle.

    Declaration
    public List<Dictionary<string, object>> UserHandleTemplateData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String, System.Object>>

    UserHandleTemplateID

    Sets the Id to the userhandle template.

    Declaration
    public string UserHandleTemplateID { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    UserhandleTemplateID needs to be unique to use. When creating UserHandleTemplate, the user should not provide the same id to UserhandleTemplates.

    UserHandleTemplateItems

    Defines the collection of userhandle templates.

    Declaration
    public List<string> UserHandleTemplateItems { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    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.SfBaseExtension.Dispose()

    OnAfterRenderAsync(Boolean)

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns asynchronous operation which is executed when the rendering of all the references to the component are populated

    Overrides
    Syncfusion.Blazor.SfBaseExtension.OnAfterRenderAsync(System.Boolean)

    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
    Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved