Defines the fluent API for configuring DropDownButtonItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DropDownButtonItemBuilder
Inheritance: objectDropDownButtonItemBuilder
Inherited Members
Constructors
DropDownButtonItemBuilder method.
public DropDownButtonItemBuilder(DropDownButtonItem container)
Properties
Gets the settings being configured.
protected DropDownButtonItem Container { get; }
Methods
Adds unique click callback for the menu item.
public DropDownButtonItemBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current DropDownButtonItemBuilder instance.
Adds unique click callback for the menu item.
public DropDownButtonItemBuilder Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current DropDownButtonItemBuilder instance.
Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.
public DropDownButtonItemBuilder Data(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current DropDownButtonItemBuilder instance.
Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.
public DropDownButtonItemBuilder Data(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current DropDownButtonItemBuilder instance.
Toggles the enabled state of the item.
public DropDownButtonItemBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current DropDownButtonItemBuilder instance.
Indicates wether the item should hidden.
public DropDownButtonItemBuilder Hidden()
Returns the current DropDownButtonItemBuilder instance.
Indicates wether the item should hidden.
public DropDownButtonItemBuilder Hidden(bool value)
The value for Hidden
Returns:Returns the current DropDownButtonItemBuilder instance.
Adds custom attributes to the LI element of the menu button.
public DropDownButtonItemBuilder HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:Returns the current DropDownButtonItemBuilder instance.
Adds custom attributes to the LI element of the menu button.
public DropDownButtonItemBuilder HtmlAttributes(object value)
The value for HtmlAttributes
Returns:Returns the current DropDownButtonItemBuilder instance.
Specifies the icon 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 DropDownButtonItemBuilder Icon(Action<DropDownButtonItemIconSettingsBuilder> configurator)
The DropDownButtonItemIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of DropDownButtonItemBuilder .
Specifies the icon 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 DropDownButtonItemBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of DropDownButtonItemBuilder .
Specifies the id of the item.
public DropDownButtonItemBuilder Id(string value)
The value for Id
Returns:Returns the current DropDownButtonItemBuilder instance.
Specifies the image of the item.
public DropDownButtonItemBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current DropDownButtonItemBuilder instance.
Specifies custom css class added to the sprite icon element of the item.
public DropDownButtonItemBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:Returns the current DropDownButtonItemBuilder instance.
Specifies the text of the item.
public DropDownButtonItemBuilder Text(string value)
The value for Text
Returns:Returns the current DropDownButtonItemBuilder instance.
Specifies the url of the item - it will render a element and will navigate the browser on click.
public DropDownButtonItemBuilder Url(string value)
The value for Url
Returns:Returns the current DropDownButtonItemBuilder instance.