FloatingActionButton
Kendo UI FloatingActionButton component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FloatingActionButton : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseFloatingActionButton
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingActionButton class.
Properties
Defines the alignment of the component
public FloatingActionButtonAlign? Align { get; set; }
Specifies the horizontal and vertical offset of the FloatingActionButton.
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.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.
public FloatingActionButtonIconSettings IconSettings { get; }
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 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
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: