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

FloatingActionButtonBuilder

Properties

WriteAction - Func

Methods

AlignOffset(System.Action)

Specifies the horizontal and vertical offset of the FloatingActionButton.

Parameters

configurator - System.Action<FloatingActionButtonAlignOffsetBuilder>

The configurator for the AlignOffset setting.

Example


            @(Html.Kendo().FloatingActionButton()
                   .Name("fab")
                   .AlignOffset(ao=>ao.Horizontal(50).Vertical(50))
            )

Enabled(System.Boolean)

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

Parameters

value - System.Boolean

The value for Enabled

Icon(System.String)

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.

Parameters

value - System.String

The value for Icon

Items(System.Action)

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.

Parameters

configurator - System.Action<FloatingActionButtonItemFactory>

The configurator for the items setting.

Text(System.String)

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

Parameters

value - System.String

The value for Text

Visible(System.Boolean)

Specifies if the FloatingActionButton is visible initially.

Parameters

value - System.Boolean

The value for Visible

Size(Kendo.Mvc.UI.FloatingActionButtonSize)

Defines the size of the component

Parameters

value - FloatingActionButtonSize

The value for Size

Align(Kendo.Mvc.UI.FloatingActionButtonAlign)

Defines the alignment of the component

Parameters

value - FloatingActionButtonAlign

The value for Align

PositionMode(Kendo.Mvc.UI.FloatingActionButtonPositionMode)

Defines the position of the component

Parameters

value - FloatingActionButtonPositionMode

The value for PositionMode

ThemeColor(Kendo.Mvc.UI.FloatingActionButtonThemeColor)

Defines the theme color of the component

Parameters

value - FloatingActionButtonThemeColor

The value for ThemeColor

FillMode(Kendo.Mvc.UI.FloatingActionButtonFillMode)

Sets a value controlling how the color is applied.

Parameters

value - FloatingActionButtonFillMode

The value for FillMode

Rounded(Kendo.Mvc.UI.FloatingActionButtonRounded)

Sets a value controlling the border radius.

Parameters

value - FloatingActionButtonRounded

The value for Rounded

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<FloatingActionButtonEventBuilder>

The client events action.

Example


            @(Html.Kendo().FloatingActionButton()
                  .Name("FloatingActionButton")
                  .Events(events => events
                      .Click("onClick")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsChildComponent()

Configures the widget as a child component.

In this article
Not finding the help you need?