Kendo UI PopoverAction TagHelper PopoverActionTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("action", ParentTag = "actions", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class PopoverActionTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBasePopoverActionTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-popover name="popover">
<actions>
<action click="handler"></action>
</actions>
</kendo-popover>
<script>
function handler(e) {
//handler code
}
</script>
Child Tags
Constructors
Initializes a new instance of the PopoverActionTagHelper class.
public PopoverActionTagHelper()
Properties
A handler function to be called when the action button is clicked
public string Click { get; set; }
The name of the icon to display inside the button.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; }
The CSS class that will be added to the icon element inside the button.
public string IconClass { 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.