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

Kendo UI FloatingActionButton component

Definition

Constructors

Initializes a new instance of the FloatingActionButton class.

C#
public FloatingActionButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

Defines the alignment of the badge

C#
public FloatingActionButtonAlign? Align { get; set; }

Defines the type of positioning

C#
public FloatingActionButtonAlignOffset AlignOffset { 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.

C#
public string Icon { get; set; }

Specifies the speed-dial items that will be rendered in a popup container anchored to the FloatingActionButton.**Note: when using the items configuration, clicking on the FloatingActionButton will open the popup containing the speed-dial list.

C#
public List<FloatingActionButtonItem> Items { get; set; }

Defines the type of positioning

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

Sets a value controlling the border radius.

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

Specifies 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; }

Specifies the color of the component

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

Specifies if the FloatingActionButton is visible initially.

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

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)