New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI FloatingToolBar component

Definition

Constructors

Initializes a new instance of the FloatingToolBar class.

C#
public FloatingToolBar(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Specifies the target element the FloatingToolBar is anchored to. When set, the widget operates in Anchored mode and positions itself relative to the specified target based on the position option. When left unset, the widget operates in Free-position mode and is positioned based on the containerAlign and margin options.

C#
public string Anchor { get; set; }

Specifies the aria-label attribute applied to the hosted ToolBar element, overriding the ToolBar's own default "Toolbar" label. Use this option to provide an accessible name that describes the purpose of the floating toolbar to assistive technologies.

C#
public string AriaLabel { get; set; }

Specifies the alignment of the FloatingToolBar relative to its positioned container when the anchor option is not set (Free-position mode). This option is ignored when anchor is set.

C#
public FloatingToolBarContainerAlignSettings ContainerAlign { get; }

Specifies whether the FloatingToolBar can be repositioned by the user through pointer dragging or keyboard-driven Move mode. When enabled, a drag handle is rendered inside the widget and the movement is clamped to remain within the browser viewport.

C#
public bool? Draggable { get; set; }

Controls the way the color is applied to the hosted ToolBar and its items. Default is Solid.

C#
public FillMode? FillMode { get; set; }

A JavaScript array that contains the configuration of the commands rendered inside the hosted ToolBar. The item configuration is identical to the ToolBar "items" configuration.

C#
public List<ToolBarItem> Items { get; set; }

Specifies an additional offset, in pixels, applied to the FloatingToolBar position. The margin is applied in both Anchored and Free-position modes.

C#
public FloatingToolBarMarginSettings Margin { get; }

Specifies the localizable messages of the FloatingToolBar.

C#
public FloatingToolBarMessagesSettings Messages { get; }

Configures the overflow behavior of the hosted ToolBar. The configuration is forwarded verbatim to the hosted ToolBar instance.

C#
public FloatingToolBarOverflowSettings Overflow { get; }

Specifies the side of the anchor target the FloatingToolBar is positioned at. Default is Top.

C#
public FloatingToolBarPosition? Position { get; set; }

Controls the overall physical size of the hosted ToolBar and its items. Default is Medium.

C#
public ComponentSize? Size { get; set; }

Specifies whether the FloatingToolBar is shown initially, upon widget initialization.

C#
public bool? Visible { get; set; }

Methods

Serialize the current instance to Dictionary

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)