ToolBarTagHelper
Kendo UI ToolBar TagHelper ToolBarTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-toolbar")]
[RestrictChildren("toolbar-items", new string[] { "overflow" })]
[OutputElementHint("div")]
public class ToolBarTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IOverflowSettingsContainer
Inheritance: objectTagHelperTagHelperBaseToolBarTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-toolbar name="toolbar">
<toolbar-items>
<item text="Item 1"></item>
</toolbar-items>
</kendo-toolbar>
Child Tags
Constructors
Initializes a new instance of the ToolBarTagHelper class.
Properties
If set to true this configuration option would enable Tab-based navigation among ToolBar items.
public bool? NavigateOnTab { get; set; }
The name of the JavaScript function that will handle the click event. Fires when the user clicks a command button.
public string OnClick { get; set; }
The name of the JavaScript function that will handle the close event. Fires when the SplitButton's popup closes.
public string OnClose { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the ToolBar 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 open event. Fires when the Split Button's popup opens.
public string OnOpen { get; set; }
The name of the JavaScript function that will handle the overflowClose event. Fires when the overflow popup container is about to close.
public string OnOverflowClose { get; set; }
The name of the JavaScript function that will handle the overflowOpen event. Fires when the overflow popup container is about to open.
public string OnOverflowOpen { get; set; }
The name of the JavaScript function that will handle the toggle event. Fires when the user changes the checked state of a toggle button.
public string OnToggle { get; set; }
If resizable is set to true the widget will detect changes in the viewport width and hides the overflowing controls in the command overflow popup.
public bool? Resizable { get; set; }
Specifies the size of the component. Default is Medium.
public ComponentSize? Size { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
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 the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: