Kendo UI FloatingActionButton TagHelper FloatingActionButtonTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-floatingactionbutton")]
[RestrictChildren("floatingactionbutton-items", new string[] { "icon" })]
public class FloatingActionButtonTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseFloatingActionButtonTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-floatingactionbutton name="fab" align="FloatingActionButtonAlign.BottomEnd"></kendo-floatingactionbutton>
Child Tags
Constructors
Initializes a new instance of the FloatingActionButtonTagHelper class.
public FloatingActionButtonTagHelper(IKendoHtmlGenerator generator)
Properties
Defines the alignment of the component
public FloatingActionButtonAlign? Align { get; set; }
Specifies the initial horizontal offset of the FloatingActionButton. Numeric values are treated as pixels. String values can specify pixels, percentages, ems, or other valid values.
[HtmlAttributeName("align-offset-horizontal")]
public string AlignOffsetHorizontal { get; set; }
Specifies the initial vertical offset of the FloatingActionButton. Numeric values are treated as pixels. String values can specify pixels, percentages, ems or other valid values.
[HtmlAttributeName("align-offset-vertical")]
public string AlignOffsetVertical { get; set; }
Specifies whether the FloatingActionButton is enabled (true) or disabled (false).
public bool? Enabled { get; set; }
Sets a value controlling how the color is applied.
public FloatingActionButtonFillMode? FillMode { get; set; }
Specifies the name for an existing icon in a Kendo UI theme that is rendered in the FloatingActionButton.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; }
The name of the JavaScript function that will handle the click event. Fires when the user clicks on a the FloatingActionButton.**Note: when using items configuration, clicking on the FloatingActionButton will open the speed-dial list popup.
public string OnClick { get; set; }
The name of the JavaScript function that will handle the collapse event. Fires when the speed-dial popup is closed and its animation is finished.**Note: this event is triggered only when using items configuration.
public string OnCollapse { get; set; }
The name of the JavaScript function that will handle the expand event. Fires when the speed-dial popup is opened and its animation is finished.**Note: this event is triggered only when using items configuration.
public string OnExpand { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the FloatingActionButton is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
Defines the position of the component
public FloatingActionButtonPositionMode? PositionMode { get; set; }
Sets a value controlling the border radius.
public FloatingActionButtonRounded? Rounded { get; set; }
Defines the size of the component
public FloatingActionButtonSize? Size { get; set; }
Specifies the text of the FloatingActionButton. Default is empty string.
public string Text { get; set; }
Defines the theme color of the component
public FloatingActionButtonThemeColor? ThemeColor { 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: