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

Defines the fluent API for configuring the ActionSheetItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ActionSheetItemBuilder

Inheritance: objectActionSheetItemBuilder

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

Constructors

Initialize the ActionSheetItemBuilder

C#
public ActionSheetItemBuilder(ActionSheetItem settings)
Parameters:settingsActionSheetItem

The ActionSheetItem

Methods

Specifies the click event handler of the item.

C#
public ActionSheetItemBuilder Click(string value)
Parameters:valuestring

The value that configures the click.

Returns:

ActionSheetItemBuilder

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Items(items =>
{
items.Add().Text("Edit Item").IconClass("k-i-pencil").Click("onClick");
})

Specifies the description of the item.

C#
public ActionSheetItemBuilder Description(string value)
Parameters:valuestring

The value that configures the description.

Returns:

ActionSheetItemBuilder

If set to true, the item will be disabled.

C#
public ActionSheetItemBuilder Disabled(bool value)
Parameters:valuebool

The value that configures the disabled.

Returns:

ActionSheetItemBuilder

Specifies the group of the item. Items can be segregated in two groups - top and bottom.

C#
public ActionSheetItemBuilder Group(ActionSheetItemGroup value)
Parameters:valueActionSheetItemGroup

The value that configures the group.

Returns:

ActionSheetItemBuilder

Specifies the icon's name of the item.

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

The value that configures the icon.

Returns:

ActionSheetItemBuilder

Specifies the icon's class of the item.

C#
public ActionSheetItemBuilder IconClass(string value)
Parameters:valuestring

The value that configures the iconclass.

Returns:

ActionSheetItemBuilder

The icon color. Available options are inherit, default, primary, secondary, tertiary, info, success, warning, error, dark, light, inverted or any hexadecimal value.

C#
public ActionSheetItemBuilder IconColor(string value)
Parameters:valuestring

The value that configures the iconcolor.

Returns:

ActionSheetItemBuilder

The icon size in pixels.

C#
public ActionSheetItemBuilder IconSize(double value)
Parameters:valuedouble

The value that configures the iconsize.

Returns:

ActionSheetItemBuilder

Specifies the main text of the item

C#
public ActionSheetItemBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

ActionSheetItemBuilder