Defines the fluent API for configuring the Kendo UI DropDownButton
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DropDownButtonBuilder : WidgetBuilderBase<DropDownButton, DropDownButtonBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<DropDownButton, DropDownButtonBuilder>DropDownButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DropDownButtonBuilder class.
Methods
Indicates whether the DropDownButton should be enabled or disabled. By default, it is enabled, unless a disabled="disabled" attribute is detected.
public DropDownButtonBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current DropDownButtonBuilder instance.
Defines a Kendo UI font or SVG icon that is rendered after the DropDownButton text.
public DropDownButtonBuilder EndIcon(string value)
The value for EndIcon
Returns:Returns the current DropDownButtonBuilder instance.
Configures the client-side events.
public DropDownButtonBuilder Events(Action<DropDownButtonEventBuilder> configurator)
The client events action.
Returns:Returns the current DropDownButtonBuilder instance.
Sets a value controlling how the color is applied.
public DropDownButtonBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current DropDownButtonBuilder instance.
Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be applied as background image of a span element inside the DropDownButton. The span element can be added automatically by the widget, or an existing element can be used, if it has a k-icon CSS class applied. For a list of available icon names, please refer to the Icons demo.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 DropDownButtonBuilder Icon(Action<DropDownButtonIconSettingsBuilder> configurator)
The DropDownButtonIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of DropDownButtonBuilder .
Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be applied as background image of a span element inside the DropDownButton. The span element can be added automatically by the widget, or an existing element can be used, if it has a k-icon CSS class applied. For a list of available icon names, please refer to the Icons demo.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 DropDownButtonBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of DropDownButtonBuilder .
Defines a CSS class - or multiple classes separated by spaced - which are applied to a span element inside the DropDownButton. Allows the usage of custom icons.
public DropDownButtonBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current DropDownButtonBuilder instance.
Defines a URL, which will be used for an img element inside the DropDownButton. The URL can be relative or absolute. In case it is relative, it will be evaluated with relation to the web page URL.The img element can be added automatically by the widget, or an existing element can be used, if it has a k-image CSS class applied.
public DropDownButtonBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current DropDownButtonBuilder instance.
Specifies the menu buttons of the DropDownButton.
public DropDownButtonBuilder Items(Action<DropDownButtonItemFactory> configurator)
The DropDownButtonItemFactory for the items setting.
Returns:Returns the current instance of DropDownButtonBuilder .
Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplate(string value)
The value for ItemTemplate
Returns:Returns the current DropDownButtonBuilder instance.
Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the itemtemplate.
Returns:Returns the current DropDownButtonBuilder instance.
Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplateHandler(string templateHandler)
The handler that returs the template for ItemTemplate
Returns:Returns the current DropDownButtonBuilder instance.
Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplateId(string templateId)
The ID of the template element for ItemTemplate
Returns:Returns the current DropDownButtonBuilder instance.
Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplateView(IHtmlContent templateView)
The view that contains the template for ItemTemplate
Returns:Returns the current DropDownButtonBuilder instance.
Allows localization of the strings that are used in the widget.
public DropDownButtonBuilder Messages(Action<DropDownButtonMessagesSettingsBuilder> configurator)
The DropDownButtonMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of DropDownButtonBuilder .
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public DropDownButtonBuilder Popup(Action<DropDownButtonPopupSettingsBuilder> configurator)
The DropDownButtonPopupSettingsBuilder for the popup setting.
Returns:Returns the current instance of DropDownButtonBuilder .
Sets a value controlling the border radius.
public DropDownButtonBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current DropDownButtonBuilder instance.
Configures the DropDownButton to render a down arrow that opens and closes its popup.
public DropDownButtonBuilder ShowArrowButton()
Returns the current DropDownButtonBuilder instance.
Configures the DropDownButton to render a down arrow that opens and closes its popup.
public DropDownButtonBuilder ShowArrowButton(bool value)
The value for ShowArrowButton
Returns:Returns the current DropDownButtonBuilder instance.
Sets the size of the component.
public DropDownButtonBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current DropDownButtonBuilder instance.
Defines a CSS class (or multiple classes separated by spaces), which will be used for applying a background image to a span element inside the DropDownButton. In case you want to use an icon from the Kendo UI theme sprite background image, it is easier to use the icon property.The span element can be added automatically by the widget, or an existing element can be used, if it has a k-sprite CSS class applied.
public DropDownButtonBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:Returns the current DropDownButtonBuilder instance.
Sets the text content of the button.
public DropDownButtonBuilder Text(string value)
The value for text content.
Returns:Returns the current instance of DropDownButtonBuilder to allow method chaining.
Sets the color of the component according to the applied theme.
public DropDownButtonBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:Returns the current DropDownButtonBuilder instance.