Class DiagramEvents
It is used to defines the diagram events.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramEvents : SfDiagramBaseExtension, IBaseInit
Constructors
DiagramEvents()
Declaration
public DiagramEvents()
Properties
Clicked
Triggers when a node, connector or diagram is clicked
Declaration
public EventCallback<IBlazorClickEventArgs> Clicked { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorClickEventArgs> | An event callback function. |
ContextMenuItemClicked
Triggers when a context menu item is clicked
Declaration
public EventCallback<DiagramMenuEventArgs> ContextMenuItemClicked { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<DiagramMenuEventArgs> | An event callback function. |
Created
Triggered when the diagram is rendered completely.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> | An event callback function. |
CustomHistoryChanged
Triggers when a custom entry change is reverted or restored(undo/redo)
Declaration
public EventCallback<IBlazorCustomHistoryChangeArgs> CustomHistoryChanged { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorCustomHistoryChangeArgs> | An event callback function. |
DataLoaded
Triggered when the diagram layout is rendered completely.
Declaration
public EventCallback<IDataLoadedEventArgs> DataLoaded { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IDataLoadedEventArgs> | An event callback function. |
DragEnter
Triggers when a symbol is dragged into diagram from symbol palette
Declaration
public EventCallback<IBlazorDragEnterEventArgs> DragEnter { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorDragEnterEventArgs> | An event callback function. |
DragLeave
Triggers when a symbol is dragged outside of the diagram.
Declaration
public EventCallback<IBlazorDragLeaveEventArgs> DragLeave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorDragLeaveEventArgs> | An event callback function. |
FixedUserHandleClick
Triggers when a Fixed User Handle item is clicked
Declaration
public EventCallback<FixedUserHandleClickEventArgs> FixedUserHandleClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<FixedUserHandleClickEventArgs> | An event callback function. |
HistoryChanged
Triggers when a change is reverted or restored(undo/redo)
Declaration
public EventCallback<IBlazorHistoryChangeArgs> HistoryChanged { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorHistoryChangeArgs> | An event callback function. |
mainParent
Declaration
protected override SfDiagramBaseExtension mainParent { get; set; }
Property Value
Type | Description |
---|---|
Syncfusion.Blazor.Diagrams.Internal.SfDiagramBaseExtension |
Overrides
MouseEnter
Triggered when mouse enters a node/connector.
Declaration
public EventCallback<IBlazorMouseEventArgs> MouseEnter { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorMouseEventArgs> | An event callback function. |
MouseLeave
Triggered when mouse leaves node/connector.
Declaration
public EventCallback<IBlazorMouseEventArgs> MouseLeave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorMouseEventArgs> | An event callback function. |
OnCommandExecuted
Triggers when a command executed.
Declaration
public EventCallback<ICommandExecuteEventArgs> OnCommandExecuted { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ICommandExecuteEventArgs> | An event callback function. |
OnConnectionChange
Triggers when the connection is changed
Declaration
public EventCallback<IBlazorConnectionChangeEventArgs> OnConnectionChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorConnectionChangeEventArgs> | An event callback function. |
OnContextMenuOpen
Triggers before opening the context menu
Declaration
public EventCallback<DiagramBeforeMenuOpenEventArgs> OnContextMenuOpen { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<DiagramBeforeMenuOpenEventArgs> | An event callback function. |
OnDoubleClick
Triggers when a node, connector or diagram model is clicked twice
Declaration
public EventCallback<IBlazorDoubleClickEventArgs> OnDoubleClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorDoubleClickEventArgs> | An event callback function. |
OnDrop
Triggers when a symbol is dragged and dropped from symbol palette to drawing area
Declaration
public EventCallback<IBlazorDropEventArgs> OnDrop { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorDropEventArgs> | An event callback function. |
OnKeyDown
Triggers when a user is pressing a key.
Declaration
public EventCallback<IKeyEventArgs> OnKeyDown { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IKeyEventArgs> | An event callback function. |
OnKeyUp
Triggers when a user releases a key.
Declaration
public EventCallback<IKeyEventArgs> OnKeyUp { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IKeyEventArgs> | An event callback function. |
OnPositionChange
Triggers while dragging the elements in diagram
Declaration
public EventCallback<IBlazorDraggingEventArgs> OnPositionChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorDraggingEventArgs> | An event callback function. |
OnRotateChange
Triggers when the diagram elements are rotated
Declaration
public EventCallback<IRotationEventArgs> OnRotateChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IRotationEventArgs> | An event callback function. |
OnSizeChange
Triggers when a node is resized
Declaration
public EventCallback<ISizeChangeEventArgs> OnSizeChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ISizeChangeEventArgs> | An event callback function. |
OnUserHandleMouseDown
Triggers when a mouseDown on the user handle.
Declaration
public EventCallback<UserHandleEventsArgs> OnUserHandleMouseDown { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<UserHandleEventsArgs> | An event callback function. |
OnUserHandleMouseEnter
Triggers when a mouseEnter on the user handle.
Declaration
public EventCallback<UserHandleEventsArgs> OnUserHandleMouseEnter { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<UserHandleEventsArgs> | An event callback function. |
OnUserHandleMouseLeave
Triggers when a mouseLeave on the user handle.
Declaration
public EventCallback<UserHandleEventsArgs> OnUserHandleMouseLeave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<UserHandleEventsArgs> | An event callback function. |
OnUserHandleMouseUp
Triggers when a mouseUp on the user handle.
Declaration
public EventCallback<UserHandleEventsArgs> OnUserHandleMouseUp { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<UserHandleEventsArgs> | An event callback function. |
PropertyChanged
Triggers once the node or connector property changed.
Declaration
public EventCallback<IBlazorPropertyChangeEventArgs> PropertyChanged { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorPropertyChangeEventArgs> | An event callback function. |
SelectionChanged
Triggers when the selection is changed in diagram
Declaration
public EventCallback<IBlazorSelectionChangeEventArgs> SelectionChanged { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorSelectionChangeEventArgs> | An event callback function. |
TextEdited
Triggers when editor got focus at the time of node’s label or text node editing.
Declaration
public EventCallback<IBlazorTextEditEventArgs> TextEdited { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<IBlazorTextEditEventArgs> | An event callback function. |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
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 |