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

Defines the fluent API for configuring the FloatingActionButtonItem settings.

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

C#
public FloatingActionButtonItemBuilder(FloatingActionButtonItem settings)
Parameters:settingsFloatingActionButtonItem

The FloatingActionButtonItem

Methods

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

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

The value that configures the click action.

Returns:

FloatingActionButtonItemBuilder

Example:
C#
@(Html.Kendo().FloatingActionButton()
.Name("fab")
.Items(items=&gt;{
items.Add().Icon("star").Click(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
);
items.Add().Icon("pencil");
})
)

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

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

The value that configures the click action.

Returns:

FloatingActionButtonItemBuilder

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

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

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

The value that configures the cssclass.

Returns:

FloatingActionButtonItemBuilder

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 that configures the enabled state of the item.

Returns:

FloatingActionButtonItemBuilder

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.

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

The value that configures the icon.

Returns:

FloatingActionButtonItemBuilder

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

Specifies the label for the speed-dial item.

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

The value that configures the label.

Returns:

FloatingActionButtonItemBuilder

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 that configures the template.

Returns:

FloatingActionButtonItemBuilder

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

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

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 value)
Parameters:valuestring

The value that configures the template.

Returns:

FloatingActionButtonItemBuilder

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

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 value)
Parameters:valuestring

The value that configures the template.

Returns:

FloatingActionButtonItemBuilder

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

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(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

FloatingActionButtonItemBuilder

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

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 that configures the title.

Returns:

FloatingActionButtonItemBuilder

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