Class SpeedDialItem
A class that represents action item of SfSpeedDial component.
Inheritance
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class SpeedDialItem : OwningComponentBase
Remarks
You can render icon only, text only, icon and text speeddial action item by specifying value to corresponding property.
Examples
In the below code example, a basic SpeedDial item has been added using SpeedDialItem tag directive.
<SfSpeedDial Content="Edit">
<SpeedDialItems>
<SpeedDialItem Text="Cut" IconCss="e-icons e-cut"></SpeedDialItem>
<SpeedDialItem IconCss="e-icons e-copy"></SpeedDialItem>
<SpeedDialItem Text="Paste"></SpeedDialItem>
</SpeedDialItems>
</SfSpeedDial>
Constructors
SpeedDialItem()
Declaration
public SpeedDialItem()
Properties
Disabled
Gets or sets a value that indicates whether to enable or disable the SpeedDialItem
.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HtmlAttributes
Gets or sets a collection of additional attributes that will be applied to the breadcrumb item element.
Declaration
public Dictionary<string, object> HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Remarks
Additional attributes can be added by specifying as inline attributes or by specifying @attributes
directive.
Examples
In the below code example, title attribute added as inline in SpeedDialItem tag directive.
<SfSpeedDial Content="Edit">
<SpeedDialItems>
<SpeedDialItem Text="Cut" IconCss="e-icons e-cut" style="color:red;"></SpeedDialItem>
<SpeedDialItem IconCss="e-icons e-copy"></SpeedDialItem>
<SpeedDialItem Text="Paste"></SpeedDialItem>
</SpeedDialItems>
</SfSpeedDial>
IconCss
Gets or sets one or more CSS classes to include an icon or image in speed dial item.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a CSS class string separated by space to include an icon or image for the SpeedDial item. The default value is |
ID
Gets or sets a unique value for the SpeedDialItem
which can be used to identify the item in event args.
Declaration
public string ID { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Text
Gets or sets the text content of SpeedDialItem
.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
Text won't be displayed when Mode is Radial
.
Also, in Linear
mode text won't be displayed when Direction is Left
or Right
.
Title
Gets or sets the title of SpeedDialItem
to display tooltip.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |