Kendo UI FloatingActionButtonItem TagHelper FloatingActionButtonItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("floatingactionbutton-item", ParentTag = "floatingactionbutton-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("item-template", new string[] { "icon" })]
[SuppressTagRendering]
public class FloatingActionButtonItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseFloatingActionButtonItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-floatingactionbutton name="fab">
<floatingactionbutton-items>
<floatingactionbutton-item click="onSpeedDialItemClick"></floatingactionbutton-item>
</floatingactionbutton-items>
</kendo-floatingactionbutton>
<script>
function onSpeedDialItemClick(){
//handler logic here
}
</script>
Child Tags
Constructors
Initializes a new instance of the FloatingActionButtonItemTagHelper class.
public FloatingActionButtonItemTagHelper()
Properties
Specifies the click event handler of the speed-dial item.
public string Click { get; set; }
Specifies a set of CSS classes for the speed-dial item.
public string CssClass { get; set; }
Specifies whether the Item is enabled or not. By default all items are enabled.
public bool? Enabled { get; set; }
Specifies the name for an existing icon in a Kendo UI theme that is rendered in the speed-dial item.See the Web Font Icons help article for more details on Kendo UI icons.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; }
Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured)..
public string Template { get; set; }
Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured).. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured).. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured).. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { 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.