Defines the fluent API for configuring ActionSheetItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ActionSheetItemBuilder
Inheritance: objectActionSheetItemBuilder
Inherited Members
Constructors
Initializes a new instance of the ActionSheetItemBuilder class.
public ActionSheetItemBuilder(ActionSheetItem container)
The ActionSheetItem settings.
Properties
Gets the ActionSheetItem settings being configured.
protected ActionSheetItem Container { get; }
Methods
Specifies the click event handler of the item.
public ActionSheetItemBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current ActionSheetItemBuilder instance.
Specifies the click event handler of the item.
public ActionSheetItemBuilder Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current ActionSheetItemBuilder instance.
Specifies the description of the item.
public ActionSheetItemBuilder Description(string value)
The value for Description
Returns:Returns the current ActionSheetItemBuilder instance.
If set to true, the item will be disabled.
public ActionSheetItemBuilder Disabled(bool value)
The value for Disabled
Returns:Returns the current ActionSheetItemBuilder instance.
Specifies the group of the item. Items can be segregated in two groups - top and bottom.
public ActionSheetItemBuilder Group(ActionSheetItemGroup value)
The value for Group
Returns: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.
public ActionSheetItemBuilder Icon(Action<ActionSheetItemIconSettingsBuilder> configurator)
The ActionSheetItemIconSettingsBuilder for the icon setting.
Returns: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.
public ActionSheetItemBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ActionSheetItemBuilder .
Specifies the icon's class of the item.
public ActionSheetItemBuilder IconClass(string value)
The value for IconClass
Returns: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.
public ActionSheetItemBuilder IconColor(string value)
The value for IconColor
Returns:Returns the current ActionSheetItemBuilder instance.
The icon size in pixels.
public ActionSheetItemBuilder IconSize(double value)
The value for IconSize
Returns:Returns the current ActionSheetItemBuilder instance.
Specifies the main text of the item
public ActionSheetItemBuilder Text(string value)
The value for Text
Returns:Returns the current ActionSheetItemBuilder instance.