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

Defines the fluent API for configuring ActionSheetItem

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

Initializes a new instance of the ActionSheetItemBuilder class.

C#
public ActionSheetItemBuilder(ActionSheetItem container)
Parameters:containerActionSheetItem

The ActionSheetItem settings.

Properties

Gets the ActionSheetItem settings being configured.

C#
protected ActionSheetItem Container { get; }

Methods

Specifies the click event handler of the item.

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

The handler code wrapped in a text tag.

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

Specifies the click event handler of the item.

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

The name of the JavaScript function that will be evaluated.

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

Specifies the description of the item.

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

The value for Description

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

If set to true, the item will be disabled.

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

The value for Disabled

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

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 for Group

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

Specifies the icon's name of the item.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 ActionSheetItemBuilder Icon(Action<ActionSheetItemIconSettingsBuilder> configurator)
Parameters:configuratorAction<ActionSheetItemIconSettingsBuilder>

The ActionSheetItemIconSettingsBuilder for the icon setting.

Returns:

ActionSheetItemBuilder

Returns the current instance of ActionSheetItemBuilder .

Specifies the icon's name of the item.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 ActionSheetItemBuilder Icon(string icon)
Parameters:iconstring

The icon.

Returns:

ActionSheetItemBuilder

Returns the current instance of ActionSheetItemBuilder .

Specifies the icon's class of the item.

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

The value for IconClass

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

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

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

The value for IconColor

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

The icon size in pixels.

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

The value for IconSize

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.

Specifies the main text of the item

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

The value for Text

Returns:

ActionSheetItemBuilder

Returns the current ActionSheetItemBuilder instance.