FloatingToolBar
Kendo UI FloatingToolBar component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FloatingToolBar : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseFloatingToolBar
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingToolBar class.
public FloatingToolBar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe 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.
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.
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.
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.
public bool? Draggable { 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.
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.
public FloatingToolBarMarginSettings Margin { get; set; }
Specifies the localizable messages of the FloatingToolBar.
public FloatingToolBarMessagesSettings Messages { get; set; }
Configures the overflow behavior of the hosted ToolBar. The configuration is forwarded verbatim to the hosted ToolBar instance.
public FloatingToolBarOverflowSettings Overflow { get; set; }
Specifies the side of the anchor target the FloatingToolBar is positioned at. Default is Top.
public FloatingToolBarPosition? Position { get; set; }
public ComponentSize? Size { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: