Defines the fluent API for configuring the Kendo DropDownButton for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DropDownButtonBuilder : WidgetBuilderBase<DropDownButton, DropDownButtonBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<DropDownButton, DropDownButtonBuilder>DropDownButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DropDownButton class.
public DropDownButtonBuilder(DropDownButton component)
The component.
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 that configures the enabled.
Returns:Configures the client-side events.
public DropDownButtonBuilder Events(Action<DropDownButtonEventBuilder> configurator)
The client events action.
Returns:Sets a value controlling how the color is applied.
public DropDownButtonBuilder FillMode(FillMode value)
The value that configures the fillmode.
Returns: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.
public DropDownButtonBuilder Icon(string value)
The value that configures the icon.
Returns: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 that configures the iconclass.
Returns: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 that configures the imageurl.
Returns:Specifies the menu buttons of the DropDownButton.
public DropDownButtonBuilder Items(Action<DropDownButtonItemFactory> configurator)
The action that configures the items.
Returns:Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplate(string value)
The value that configures the itemtemplate.
Returns:Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the itemtemplate.
Returns:Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplateHandler(string value)
The value that configures the itemtemplate.
Returns:Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplateId(string value)
The value that configures the itemtemplate.
Returns:Specifies a custom template for the menu items.
public DropDownButtonBuilder ItemTemplateView(MvcHtmlString value)
The value that configures the itemtemplate.
Returns:Allows localization of the strings that are used in the widget.
public DropDownButtonBuilder Messages(Action<DropDownButtonMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns: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 action that configures the popup.
Returns:Sets a value controlling the border radius.
public DropDownButtonBuilder Rounded(Rounded value)
The value that configures the rounded.
Returns:Configures the DropDownButton to render a down arrow that opens and closes its popup.
public DropDownButtonBuilder ShowArrowButton(bool value)
The value that configures the showarrowbutton.
Returns:Sets the size of the component.
public DropDownButtonBuilder Size(ComponentSize value)
The value that configures the size.
Returns: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 that configures the spritecssclass.
Returns:Sets the text content of the button.
public DropDownButtonBuilder Text(string value)
The value for text content.
Returns:Sets the color of the component according to the applied theme.
public DropDownButtonBuilder ThemeColor(ThemeColor value)
The value that configures the themecolor.
Returns: