FloatingToolBar
Kendo UI FloatingToolBar component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FloatingToolBar : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseFloatingToolBar
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingToolBar class.
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; }
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; }
Controls the way the color is applied to the hosted ToolBar and its items. Default is Solid.
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.
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; }
Specifies the localizable messages of the FloatingToolBar.
public FloatingToolBarMessagesSettings Messages { get; }
Configures the overflow behavior of the hosted ToolBar. The configuration is forwarded verbatim to the hosted ToolBar instance.
public FloatingToolBarOverflowSettings Overflow { get; }
Specifies the side of the anchor target the FloatingToolBar is positioned at. Default is Top.
public FloatingToolBarPosition? Position { get; set; }
Controls the overall physical size of the hosted ToolBar and its items. Default is Medium.
public ComponentSize? Size { get; set; }
Methods
Serialize the current instance to Dictionary
public override IDictionary<string, object> Serialize()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: