Class LinearGaugeEvents
Specifies the events to be triggered in the linear gauge component.
Inheritance
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeEvents : ComponentBase
Constructors
LinearGaugeEvents()
Declaration
public LinearGaugeEvents()
Properties
AnnotationRendering
Gets or sets the event to trigger it before each Annotation gets rendered.
Declaration
public EventCallback<AnnotationRenderEventArgs> AnnotationRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<AnnotationRenderEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> to customize annotations during rendering. |
Remarks
This event can alter annotation properties or content before display.
AxisLabelRendering
Gets or sets the event to trigger it before each axis label gets rendered.
Declaration
public EventCallback<AxisLabelRenderEventArgs> AxisLabelRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<AxisLabelRenderEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> enabling customization of axis label rendering. |
Remarks
Utilize this event to modify label appearance or content during the rendering process.
Loaded
Gets or sets the event to trigger it after the linear gauge gets loaded.
Declaration
public EventCallback<LoadedEventArgs> Loaded { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LoadedEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> that enables executing code after the gauge is fully loaded. |
Remarks
This event is ideal for operations that require the gauge to be completely initialized and rendered.
OnDrag
Gets or sets the event that is triggered during the pointer dragging interaction.
Declaration
public EventCallback<PointerDragEventArgs> OnDrag { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PointerDragEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> providing updates on active pointer drag operations. |
Remarks
This event supplies real-time feedback while the pointer is being dragged, useful for updating UI elements or states.
OnDragEnd
Gets or sets the event that is triggered after the pointer dragging operation is completed.
Declaration
public EventCallback<PointerDragEventArgs> OnDragEnd { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PointerDragEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> that responds when pointer dragging ends. |
Remarks
This event is ideal for handling logic after pointer adjustments have been finalized through user interaction.
OnDragStart
Gets or sets the event that is triggered before the pointer dragging operation begins.
Declaration
public EventCallback<PointerDragEventArgs> OnDragStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PointerDragEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> invoked when pointer dragging starts. |
Remarks
Use this event to prepare or initialize settings before pointer dragging commences.
OnGaugeMouseDown
Gets or sets the event to trigger it when performing the mouse down operation on gauge area.
Declaration
public EventCallback<MouseEventArgs> OnGaugeMouseDown { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> responding to mouse press events. |
Remarks
Ideal for initiating actions or controls when the gauge is clicked.
OnGaugeMouseLeave
Gets or sets the event to trigger its when performing the mouse leave operation from the gauge area.
Declaration
public EventCallback<MouseEventArgs> OnGaugeMouseLeave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> for mouse leave event handling. |
Remarks
Useful for cleanup or UI updates when the mouse exits the gauge's interactive area.
OnGaugeMouseUp
Gets or sets the event to trigger it when performing mouse up operation on gauge area.
Declaration
public EventCallback<MouseEventArgs> OnGaugeMouseUp { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> for capturing mouse release actions. |
Remarks
Integrate additional logic or state updates following mouse clicks in the gauge area.
OnLoad
Gets or sets the event to trigger it before the linear gauge gets loaded.
Declaration
public EventCallback<LoadEventArgs> OnLoad { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LoadEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> that allows custom logic to run before loading the linear gauge. |
Remarks
Use this event to apply settings or perform actions before the gauge is initialized.
OnPrint
Gets or sets the event to trigger it before the prints gets started.
Declaration
public EventCallback<PrintEventArgs> OnPrint { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PrintEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> facilitating actions before printing the gauge. |
Remarks
Customize print settings or capture relevant data before the print process.
Parent
Gets or sets the cascading value and parameters for all of its descendants of the class.
Declaration
protected SfLinearGauge Parent { get; set; }
Property Value
Type |
---|
SfLinearGauge |
Resizing
Gets or sets the event to trigger it after window resize.
Declaration
public EventCallback<ResizeEventArgs> Resizing { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> that enables resize-specific operations. |
Remarks
This event is useful for responsive designs, adjusting gauge size, and placement after resizing.
TooltipRendering
Gets or sets the event to trigger it before tooltip gets rendered.
Declaration
public EventCallback<TooltipRenderEventArgs> TooltipRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<TooltipRenderEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> for adjusting tooltip attributes before rendering. |
Remarks
Use this event to modify tooltip parameters dynamically as needed.
ValueChange
Gets or sets the event to trigger it while changing the value of the pointer by UI interaction.
Declaration
public EventCallback<ValueChangeEventArgs> ValueChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ValueChangeEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> that acts upon pointer value adjustments. |
Remarks
Allows dynamic updates and real-time tracking of pointer value changes.
Methods
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |