New to Telerik UI for ASP.NET MVC? 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, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

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; set; }

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; }
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; set; }

Specifies the localizable messages of the FloatingToolBar.

C#
public FloatingToolBarMessagesSettings Messages { get; set; }

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

C#
public FloatingToolBarOverflowSettings Overflow { get; set; }

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

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

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

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

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)