A popup-based ToolBar that can be positioned relative to an anchor or at free viewport coordinates.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikFloatingToolBar : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable
Inheritance: objectComponentBaseBaseComponentTelerikFloatingToolBar
Implements:
Inherited Members
Constructors
public TelerikFloatingToolBar()
Properties
Selects the anchor element. A non-empty value enables anchored positioning; an empty value enables free positioning.
[Parameter]
public string AnchorSelector { get; set; }
Sets the accessible name on the hosted element with role="toolbar".
[Parameter]
public string AriaLabel { get; set; }
Defines the ToolBar items. Supports the same child components as TelerikToolBar.
[Parameter]
public RenderFragment ChildContent { get; set; }
Renders a drag handle and enables pointer and keyboard movement in free-position mode.
[Parameter]
public bool Draggable { get; set; }
Sets the hosted ToolBar fill mode. Defaults to Solid.
[Parameter]
public string FillMode { get; set; }
Gets or sets the horizontal alignment within the containing element.
[Parameter]
public FloatingToolBarHorizontalAlign HorizontalAlign { get; set; }
Sets horizontal spacing in CSS pixels from the applicable anchor or container edge.
[Parameter]
public double HorizontalOffset { get; set; }
Fires when pointer drag ends or keyboard Move mode commits.
[Parameter]
public EventCallback<FloatingToolBarDragEndEventArgs> OnDragEnd { get; set; }
Fires before pointer drag or keyboard Move mode begins. Set IsCancelled to prevent movement.
[Parameter]
public EventCallback<FloatingToolBarDragStartEventArgs> OnDragStart { get; set; }
Fires when drag, keyboard Move mode, or SetPositionAsync(double, double) changes the position.
[Parameter]
public EventCallback<FloatingToolBarMoveEventArgs> OnMove { get; set; }
Configures the static ToolBar overflow strategy. Supported values are None, Menu, and Scroll.
[Parameter]
public FloatingToolBarOverflowMode OverflowMode { get; set; }
Sets the preferred side of the anchor. Defaults to Top.
[Parameter]
public FloatingToolBarPopoverPosition Position { get; set; }
Controls scroll-button placement when OverflowMode is Scroll.
[Parameter]
public FloatingToolBarScrollButtonsPosition ScrollButtonsPosition { get; set; }
Controls scroll-button visibility when OverflowMode is Scroll.
[Parameter]
public FloatingToolBarScrollButtonsVisibility ScrollButtonsVisibility { get; set; }
Sets the Floating ToolBar and hosted ToolBar size. Defaults to Medium.
[Parameter]
public string Size { get; set; }
Gets or sets the vertical alignment within the containing element.
[Parameter]
public FloatingToolBarVerticalAlign VerticalAlign { get; set; }
Sets vertical spacing in CSS pixels from the applicable anchor or container edge.
[Parameter]
public double VerticalOffset { get; set; }
Controls whether the Floating ToolBar is visible. Defaults to false.
[Parameter]
public bool Visible { get; set; }
Fires after the effective visibility changes and enables two-way binding of Visible.
[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
Focuses the hosted ToolBar item at the current roving-tabindex position when visible.
Hides the Floating ToolBar and restores focus when focus was within it.
protected override void OnParametersSet()
Overrides:
public override Task SetParametersAsync(ParameterView parameters)
Overrides:
Shows the Floating ToolBar using the configured anchor or free-position alignment and clears coordinate overrides.