New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI FloatingActionButton TagHelper FloatingActionButtonTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-floatingactionbutton")]
[RestrictChildren("floatingactionbutton-items", new string[] { "icon" })]
public class FloatingActionButtonTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseFloatingActionButtonTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-floatingactionbutton name="fab" align="FloatingActionButtonAlign.BottomEnd"></kendo-floatingactionbutton>

Constructors

Initializes a new instance of the FloatingActionButtonTagHelper class.

C#
public FloatingActionButtonTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Defines the alignment of the component

C#
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.

C#
[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.

C#
[HtmlAttributeName("align-offset-vertical")]
public string AlignOffsetVertical { get; set; }

Specifies whether the FloatingActionButton is enabled (true) or disabled (false).

C#
public bool? Enabled { get; set; }

Sets a value controlling how the color is applied.

C#
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.

C#
[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.

C#
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.

C#
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.

C#
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.

C#
public string OnKendoKeydown { get; set; }

Defines the position of the component

C#
public FloatingActionButtonPositionMode? PositionMode { get; set; }

Sets a value controlling the border radius.

C#
public FloatingActionButtonRounded? Rounded { get; set; }

Defines the size of the component

C#
public FloatingActionButtonSize? Size { get; set; }

Specifies the text of the FloatingActionButton. Default is empty string.

C#
public string Text { get; set; }

Defines the theme color of the component

C#
public FloatingActionButtonThemeColor? ThemeColor { get; set; }

Specifies if the FloatingActionButton is visible initially.

C#
public bool? Visible { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)