Class
TelerikDiagram

Telerik UI Diagram component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikDiagram : DataVizComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDataVizComponentTelerikDiagram

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikDiagram()

Declaration

cs-api-definition
public TelerikDiagram()

Properties

Id

Specifies the id of the component.

Declaration

cs-api-definition
[Parameter]
public string Id { get; set; }

Property Value

string

MaxZoom

The maximum zoom level in percentages. The user will not be allowed to zoom in past this level.

Declaration

cs-api-definition
[Parameter]
public double? MaxZoom { get; set; }

Property Value

double?

MinZoom

The minimum zoom level in percentages. The user will not be allowed to zoom out past this level. You can see an example in zoomMax.

Declaration

cs-api-definition
[Parameter]
public double? MinZoom { get; set; }

Property Value

double?

OnConnectionClick

Specifies the shape click event.

Declaration

cs-api-definition
[Parameter]
public EventCallback<DiagramConnectionClickEventArgs> OnConnectionClick { get; set; }

Property Value

EventCallback<DiagramConnectionClickEventArgs>

OnShapeClick

Specifies the shape click event.

Declaration

cs-api-definition
[Parameter]
public EventCallback<DiagramShapeClickEventArgs> OnShapeClick { get; set; }

Property Value

EventCallback<DiagramShapeClickEventArgs>

Zoom

The default zoom level of the Diagram in percentages.

Declaration

cs-api-definition
[Parameter]
public double? Zoom { get; set; }

Property Value

double?

ZoomRate

The zoom step when using the mouse-wheel to zoom in or out.

Declaration

cs-api-definition
[Parameter]
public double? ZoomRate { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

LoadFromJsonAsync(string)

Loads the diagram from JSON.

Declaration

cs-api-definition
public Task LoadFromJsonAsync(string json)

Parameters

json

string

Returns

Task

SaveAsJsonAsync()

Saves the diagram as JSON.

Declaration

cs-api-definition
public Task<string> SaveAsJsonAsync()

Returns

Task<string>