Kendo UI PropertyGridToolbar TagHelper PropertyGridToolbarTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("property-grid-toolbar-button", ParentTag = "toolbar", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class PropertyGridToolbarTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBasePropertyGridToolbarTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-propertygrid name="propertygrid">
<toolbar>
<property-grid-toolbar-button name="MyCommand" click="handler" />
</toolbar>
</kendo-propertygrid>
<script>
function handler(e) {
//handler code
}
</script>
Child Tags
Constructors
Initializes a new instance of the PropertyGridToolbarTagHelper class.
public PropertyGridToolbarTagHelper()
Properties
The click handler of the toolbar command. Used for custom toolbar commands.
public string Click { get; set; }
Specifies the icon's name that will be rendered inside the toolbar button. When you set this option, the PropertyGrid renders an additional span element inside the toolbar button which has a name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.
public string Icon { get; set; }
A class name that will be rendered inside the toolbar button. When you set this option, the PropertyGrid renders an additional span element inside the toolbar button which has a class name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.
public string ImageClass { get; set; }
The name of the toolbar command. Can be either a built-in ("search", "sort", "group" or "details") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.
public string Name { 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.