Class SpeedDialItemEventArgs
Provides information about the ItemRendered and ItemClicked event callbacks, detailing the specific item and its DOM element.
Inheritance
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class SpeedDialItemEventArgs : Object
Remarks
This class is supplied with item-level event handlers in the SfSpeedDial component and can be used to determine which item was interacted with and access its DOM element.
Examples
Example of using ItemClicked to access the clicked item's element and properties:
<SfSpeedDial ItemClicked="OnSpeedDialItemClicked">
</SfSpeedDial>
@code {
private void OnSpeedDialItemClicked(SpeedDialItemEventArgs args)
{
var itemText = args.Item.Text;
// Use args.Element for JavaScript interop or DOM access
}
}
Constructors
SpeedDialItemEventArgs()
Declaration
public SpeedDialItemEventArgs()
Properties
Element
Gets the reference to the selected speed dial item's DOM element.
Declaration
public ElementReference Element { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.ElementReference | An Microsoft.AspNetCore.Components.ElementReference providing access to the corresponding DOM element of the speed dial item. |
Remarks
This is useful for manipulating the item's DOM or for integration with other UI libraries or Direct DOM operations via JSInterop.
Item
Gets the currently selected speed dial item's data.
Declaration
public SpeedDialItem Item { get; }
Property Value
Type | Description |
---|---|
SpeedDialItem | The SpeedDialItem object representing the currently selected speed dial item. |
Remarks
Use this property to access metadata such as text, icon, and custom fields about the selected speed dial item.