Defines the fluent API for configuring the Kendo UI FloatingToolBar
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class FloatingToolBarBuilder : WidgetBuilderBase<FloatingToolBar, FloatingToolBarBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<FloatingToolBar, FloatingToolBarBuilder>FloatingToolBarBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingToolBarBuilder class.
Methods
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 FloatingToolBarBuilder Anchor(string value)
The value for Anchor
Returns:Returns the current FloatingToolBarBuilder instance.
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 FloatingToolBarBuilder AriaLabel(string value)
The value for AriaLabel
Returns:Returns the current FloatingToolBarBuilder instance.
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 FloatingToolBarBuilder ContainerAlign(Action<FloatingToolBarContainerAlignSettingsBuilder> configurator)
The FloatingToolBarContainerAlignSettingsBuilder for the containeralign setting.
Returns:Returns the current instance of FloatingToolBarBuilder .
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 FloatingToolBarBuilder Draggable()
Returns the current FloatingToolBarBuilder instance.
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 FloatingToolBarBuilder Draggable(bool value)
The value for Draggable
Returns:Returns the current FloatingToolBarBuilder instance.
Configures the client-side events.
public FloatingToolBarBuilder Events(Action<FloatingToolBarEventBuilder> configurator)
The client events action.
Returns:Returns the current FloatingToolBarBuilder instance.
Controls the way the color is applied to the hosted ToolBar and its items. Default is Solid.
public FloatingToolBarBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current FloatingToolBarBuilder instance.
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 FloatingToolBarBuilder Items(Action<ToolBarItemFactory> configurator)
The ToolBarItemFactory for the items setting.
Returns:Returns the current instance of FloatingToolBarBuilder .
Specifies an additional offset, in pixels, applied to the FloatingToolBar position. The margin is applied in both Anchored and Free-position modes.
public FloatingToolBarBuilder Margin(Action<FloatingToolBarMarginSettingsBuilder> configurator)
The FloatingToolBarMarginSettingsBuilder for the margin setting.
Returns:Returns the current instance of FloatingToolBarBuilder .
Specifies the localizable messages of the FloatingToolBar.
public FloatingToolBarBuilder Messages(Action<FloatingToolBarMessagesSettingsBuilder> configurator)
The FloatingToolBarMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of FloatingToolBarBuilder .
Configures the overflow behavior of the hosted ToolBar. The configuration is forwarded verbatim to the hosted ToolBar instance.
public FloatingToolBarBuilder Overflow(Action<FloatingToolBarOverflowSettingsBuilder> configurator)
The FloatingToolBarOverflowSettingsBuilder for the overflow setting.
Returns:Returns the current instance of FloatingToolBarBuilder .
Specifies the side of the anchor target the FloatingToolBar is positioned at. Default is Top.
public FloatingToolBarBuilder Position(FloatingToolBarPosition value)
The value for Position
Returns:Returns the current FloatingToolBarBuilder instance.
Controls the overall physical size of the hosted ToolBar and its items. Default is Medium.
public FloatingToolBarBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current FloatingToolBarBuilder instance.
Specifies whether the FloatingToolBar is shown initially, upon widget initialization.
public FloatingToolBarBuilder Visible()
Returns the current FloatingToolBarBuilder instance.
Specifies whether the FloatingToolBar is shown initially, upon widget initialization.
public FloatingToolBarBuilder Visible(bool value)
The value for Visible
Returns:Returns the current FloatingToolBarBuilder instance.