Kendo UI FloatingToolBar TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-floatingtoolbar")]
[RestrictChildren("floatingtoolbar-overflow", new string[] { "container-align", "margin", "messages", "floatingtoolbar-items" })]
public class FloatingToolBarTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseFloatingToolBarTagHelper
Implements:
Inherited Members
Child Tags
Constructors
Initializes a new instance of the FloatingToolBarTagHelper class.
public FloatingToolBarTagHelper(IKendoHtmlGenerator 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 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; }
The name of the JavaScript function that will handle the dragEnd event. Fired when the user finishes repositioning the FloatingToolBar, either by ending a pointer drag or by committing or canceling keyboard-driven Move mode.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnDragEnd { get; set; }
The name of the JavaScript function that will handle the dragStart event. Fired when the user starts repositioning the FloatingToolBar, either by starting a pointer drag or by entering keyboard-driven Move mode. The event is cancelable — calling e.preventDefault() prevents the drag or Move mode from starting.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnDragStart { get; set; }
The name of the JavaScript function that will handle the hide event. Fired when the FloatingToolBar transitions from visible to hidden as a result of a successful hide call. The event is cancelable — calling e.preventDefault() prevents the toolbar from becoming hidden. A hide call made while the toolbar is already hidden does not fire this event, since no Hidden/Visible transition occurs.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnHide { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the FloatingToolBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the move event. Fired when the position of the FloatingToolBar changes as a result of a pointer drag, keyboard-driven Move mode, or a call to the setPosition method.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnMove { get; set; }
The name of the JavaScript function that will handle the show event. Fired when the FloatingToolBar transitions from hidden to visible as a result of a successful show call. The event is cancelable — calling e.preventDefault() prevents the toolbar from becoming visible. A show call made while the toolbar is already visible (for example, calling show() only to retarget or reposition an open toolbar) does not fire this event, since no Hidden/Visible transition occurs.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnShow { get; set; }
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
Gets the generated initialization script.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes content to the output.
protected override void WriteHtml(TagHelperOutput output)
Overrides: