Radial Menu in Blazor Speed Dial Component
9 Mar 20232 minutes to read
The action items in Blazor Speed Dial can be displayed in a circular patter like a radial menu by setting Mode property. You can customize the Direction
, StartAngle
, EndAngle
and Offset
by setting SpeedDialRadialSettings tag directive.
Radial Menu direction
You can open the action items in either clockwise or anticlockwise by setting Direction property. The default value is Auto
where the action items are displayed based on the Position
property of the Speed Dial.
@using Syncfusion.Blazor.Buttons
<SfSpeedDial Mode="SpeedDialMode.Radial" OpenIconCss="e-icons e-edit">
<SpeedDialRadialSettings Direction="RadialDirection.AntiClockwise" OffSet="80px"/>
<SpeedDialItems>
<SpeedDialItem IconCss="e-icons e-cut"/>
<SpeedDialItem IconCss="e-icons e-copy"/>
<SpeedDialItem IconCss="e-icons e-paste"/>
</SpeedDialItems>
</SfSpeedDial>
Start and end angle
You can modify the start and end angle of action items by setting StartAngle and EndAngle properties. If the angle is not defined, the action items are displayed based on the Position
property of the Speed Dial.
The SpeedDial angle starts with 0
degree in the right side and increases in the clockwise direction.
@using Syncfusion.Blazor.Buttons
<SfSpeedDial Position="FabPosition.MiddleRight" Mode="SpeedDialMode.Radial" OpenIconCss="e-icons e-edit">
<SpeedDialRadialSettings Direction="RadialDirection.AntiClockwise" StartAngle="130" EndAngle="230" OffSet="70px"/>
<SpeedDialItems>
<SpeedDialItem IconCss="e-icons e-cut"/>
<SpeedDialItem IconCss="e-icons e-copy"/>
<SpeedDialItem IconCss="e-icons e-paste"/>
</SpeedDialItems>
</SfSpeedDial>
Offset
You can modify the offset distance between action items and Speed Dial button using Offset property.
@using Syncfusion.Blazor.Buttons
<SfSpeedDial Mode="SpeedDialMode.Radial" OpenIconCss="e-icons e-edit">
<SpeedDialRadialSettings OffSet="80px"/>
<SpeedDialItems>
<SpeedDialItem IconCss="e-icons e-cut"/>
<SpeedDialItem IconCss="e-icons e-copy"/>
<SpeedDialItem IconCss="e-icons e-paste"/>
</SpeedDialItems>
</SfSpeedDial>