Defines the fluent API for configuring the Kendo UI FloatingActionButton
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class FloatingActionButtonBuilder : WidgetBuilderBase<FloatingActionButton, FloatingActionButtonBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<FloatingActionButton, FloatingActionButtonBuilder>FloatingActionButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingActionButtonBuilder class.
public FloatingActionButtonBuilder(FloatingActionButton component)
Methods
Defines the alignment of the component
public FloatingActionButtonBuilder Align(FloatingActionButtonAlign value)
The value for Align
Returns:Returns the current FloatingActionButtonBuilder instance.
Specifies the horizontal and vertical offset of the FloatingActionButton.
public FloatingActionButtonBuilder AlignOffset(Action<FloatingActionButtonAlignOffsetBuilder> configurator)
The configurator for the AlignOffset setting.
Returns:Returns the current FloatingActionButtonBuilder instance.
Specifies whether the FloatingActionButton is enabled (true) or disabled (false).
public FloatingActionButtonBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current FloatingActionButtonBuilder instance.
Configures the client-side events.
public FloatingActionButtonBuilder Events(Action<FloatingActionButtonEventBuilder> configurator)
The client events action.
Returns:Returns the current FloatingActionButtonBuilder instance.
Sets a value controlling how the color is applied.
public FloatingActionButtonBuilder FillMode(FloatingActionButtonFillMode value)
The value for FillMode
Returns:Returns the current FloatingActionButtonBuilder instance.
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 FloatingActionButtonBuilder Icon(Action<FloatingActionButtonIconSettingsBuilder> configurator)
The FloatingActionButtonIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of FloatingActionButtonBuilder .
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 FloatingActionButtonBuilder Icon(string icon)
The value for Icon
Returns:Returns the current instance of FloatingActionButtonBuilder .
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 FloatingActionButtonBuilder Items(Action<FloatingActionButtonItemFactory> configurator)
The FloatingActionButtonItemFactory for the items setting.
Returns:Returns the current instance of FloatingActionButtonBuilder .
Defines the position of the component
public FloatingActionButtonBuilder PositionMode(FloatingActionButtonPositionMode value)
The value for PositionMode
Returns:Returns the current FloatingActionButtonBuilder instance.
Sets a value controlling the border radius.
public FloatingActionButtonBuilder Rounded(FloatingActionButtonRounded value)
The value for Rounded
Returns:Returns the current FloatingActionButtonBuilder instance.
Defines the size of the component
public FloatingActionButtonBuilder Size(FloatingActionButtonSize value)
The value for Size
Returns:Returns the current FloatingActionButtonBuilder instance.
Specifies the text of the FloatingActionButton. Default is empty string.
public FloatingActionButtonBuilder Text(string value)
The value for Text
Returns:Returns the current FloatingActionButtonBuilder instance.
Defines the theme color of the component
public FloatingActionButtonBuilder ThemeColor(FloatingActionButtonThemeColor value)
The value for ThemeColor
Returns:Returns the current FloatingActionButtonBuilder instance.
Specifies if the FloatingActionButton is visible initially.
public FloatingActionButtonBuilder Visible(bool value)
The value for Visible
Returns:Returns the current FloatingActionButtonBuilder instance.