New to Telerik UI for BlazorStart a free 30-day trial

A component that lets you render a primary action button floating over content. Supports theme color and roundness, fixed/absolute positioning, top/bottom and start/end alignment, and configurable offsets.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikFloatingActionButton : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentButtonBaseTelerikFloatingActionButton

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ButtonBase.IdButtonBase.ChildContentButtonBase.TitleButtonBase.IconButtonBase.EnabledButtonBase.TabIndexButtonBase.FillModeButtonBase.SizeButtonBase.AriaLabelButtonBase.AriaLabelledByButtonBase.AriaDescribedByButtonBase.AriaControlsBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikFloatingActionButton()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: ComponentBase.OnParametersSetAsync()

Properties

Specifies horizontal alignment of the button. Default value is End.

C#
[Parameter]
public FloatingActionButtonHorizontalAlign HorizontalAlign { get; set; }

The horizontal offset value added to the button position, creating a blank space between the button and the parent.

C#
[Parameter]
public string HorizontalOffset { get; set; }

The Click handler of the button.

C#
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }

Specifies CSS position of the button. Default value is Fixed.

C#
[Parameter]
public FloatingActionButtonPositionMode PositionMode { get; set; }

Specifies the roundness of the button.

C#
[Parameter]
public override string Rounded { get; set; }

Overrides: ButtonBase.Rounded

Specifies the theme color of the button.

C#
[Parameter]
public override string ThemeColor { get; set; }

Overrides: ButtonBase.ThemeColor

Specifies vertical alignment of the button. Default value is Bottom.

C#
[Parameter]
public FloatingActionButtonVerticalAlign VerticalAlign { get; set; }

The vertical offset value added to the button position, creating a blank space between the button and the parent.

C#
[Parameter]
public string VerticalOffset { get; set; }