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

Defines the fluent API for configuring FloatingActionButtonItem

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class FloatingActionButtonItemBuilder

Inheritance: objectFloatingActionButtonItemBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

FloatingActionButtonItemBuilder method.

C#
public FloatingActionButtonItemBuilder(FloatingActionButtonItem container)
Parameters:containerFloatingActionButtonItem

Properties

Gets the settings being configured.

C#
protected FloatingActionButtonItem Container { get; }

Methods

Specifies the click event handler of the speed-dial item.

C#
public FloatingActionButtonItemBuilder Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies the click event handler of the speed-dial item.

C#
public FloatingActionButtonItemBuilder Click(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies a set of CSS classes for the speed-dial item.

C#
public FloatingActionButtonItemBuilder CssClass(string value)
Parameters:valuestring

The value for CssClass

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Example:
C#
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Items(items=&gt;{
items.Add().Icon("star").CssClass("my-custom-class");
items.Add().Icon("pencil");
})
)

Specifies whether the Item is enabled or not. By default all items are enabled.

C#
public FloatingActionButtonItemBuilder Enabled(bool value)
Parameters:valuebool

The value for Enabled

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Example:
C#
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Items(items=&gt;{
items.Add().Icon("star").Enabled(false);
items.Add().Icon("pencil");
})
)

Specifies the name for an existing icon in a Kendo UI theme that is rendered in the speed-dial item.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.

C#
public FloatingActionButtonItemBuilder Icon(Action<FloatingActionButtonItemIconSettingsBuilder> configurator)
Parameters:configuratorAction<FloatingActionButtonItemIconSettingsBuilder>

The FloatingActionButtonItemIconSettingsBuilder for the icon setting.

Returns:

FloatingActionButtonItemBuilder

Returns the current instance of FloatingActionButtonItemBuilder .

Specifies the name for an existing icon in a Kendo UI theme that is rendered in the speed-dial item.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.

C#
public FloatingActionButtonItemBuilder Icon(string icon)
Parameters:iconstring

The icon.

Returns:

FloatingActionButtonItemBuilder

Returns the current instance of FloatingActionButtonItemBuilder .

Specifies the label for the speed-dial item.

C#
public FloatingActionButtonItemBuilder Label(string value)
Parameters:valuestring

The value for Label

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Example:
C#
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Items(items=&gt;{
items.Add().Icon("star").Label("Add Rating");
items.Add().Icon("pencil").Label("Add comment");
})
)

Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured)..

C#
public FloatingActionButtonItemBuilder Template(string value)
Parameters:valuestring

The value for Template

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured)..

C#
public FloatingActionButtonItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured)..

C#
public FloatingActionButtonItemBuilder TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured)..

C#
public FloatingActionButtonItemBuilder TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies the template used to render the contents of the speed-dial item.The fields which can be used inside the template are: text String - the label of the item (if configured). or icon String - the icon specified for this step (if configured)..

C#
public FloatingActionButtonItemBuilder TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Specifies the label for the speed-dial item that will be read by assistive technologies.

C#
public FloatingActionButtonItemBuilder Title(string value)
Parameters:valuestring

The value for Title

Returns:

FloatingActionButtonItemBuilder

Returns the current FloatingActionButtonItemBuilder instance.

Example:
C#
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Items(items=&gt;{
items.Add().Icon("star").Title("add comment");
items.Add().Icon("pencil");
})
)