FloatingActionButton
Kendo UI FloatingActionButton component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FloatingActionButton : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseFloatingActionButton
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingActionButton class.
public FloatingActionButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Defines the alignment of the badge
public FloatingActionButtonAlign? Align { get; set; }
Defines the type of positioning
public FloatingActionButtonAlignOffset AlignOffset { 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.
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.
public List<FloatingActionButtonItem> Items { get; set; }
Defines the type of positioning
public FloatingActionButtonPositionMode? PositionMode { get; set; }
Sets a value controlling the border radius.
public FloatingActionButtonRounded? Rounded { get; set; }
Specifies 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; }
Specifies the color of the component
public FloatingActionButtonThemeColor? ThemeColor { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: