Kendo UI ToolBarItemMenuButton TagHelper ToolBarItemMenuButtonTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("toolbar-button", ParentTag = "menu-buttons", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[OutputElementHint("div")]
[SuppressTagRendering]
public class ToolBarItemMenuButtonTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseToolBarItemMenuButtonTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-toolbar name="toolbar">
<toolbar-items>
<item>
<menu-buttons>
<toolbar-button enable="false"></toolbar-button>
</menu-buttons>
</item>
</toolbar-items>
</kendo-toolbar>
Child Tags
Constructors
Initializes a new instance of the ToolBarItemMenuButtonTagHelper class.
public ToolBarItemMenuButtonTagHelper()
Properties
Specifies whether the menu button is initially enabled or disabled.
public bool? Enable { get; set; }
Determines if a button is visible or hidden. By default buttons are visible.
public bool? Hidden { get; set; }
HtmlAttributes
dynamic
Specifies the HTML attributes of a ToolBar button.
public dynamic HtmlAttributes { get; set; }
Sets icon for the menu buttons. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
If set, the ToolBar will render an image with the specified URL in the menu button.
public string ImageUrl { get; set; }
Defines a CSS class (or multiple classes separated by spaces) which will be used for menu button icon.
public string SpriteCssClass { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.