SplitButtonBuilder
Defines the fluent API for configuring the Kendo UI SplitButton
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SplitButtonBuilder : WidgetBuilderBase<SplitButton, SplitButtonBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<SplitButton, SplitButtonBuilder>SplitButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SplitButtonBuilder class.
Methods
The icon rendered for the arrow button of the SplitButton.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 SplitButtonBuilder ArrowIcon(Action<SplitButtonArrowIconSettingsBuilder> configurator)
The SplitButtonArrowIconSettingsBuilder for the arrowicon setting.
Returns:Returns the current instance of SplitButtonBuilder .
The icon rendered for the arrow button of the SplitButton.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 SplitButtonBuilder ArrowIcon(string arrowIcon)
The arrowicon.
Returns:Returns the current instance of SplitButtonBuilder .
Indicates whether the SplitButton should be enabled or disabled. By default, it is enabled, unless a disabled="disabled" attribute is detected.
public SplitButtonBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current SplitButtonBuilder instance.
Defines a Kendo UI font or SVG icon that is rendered after the text of the main SplitButton button. The arrow button is not affected.
public SplitButtonBuilder EndIcon(string value)
The value for EndIcon
Returns:Returns the current SplitButtonBuilder instance.
Configures the client-side events.
public SplitButtonBuilder Events(Action<SplitButtonEventBuilder> configurator)
The client events action.
Returns:Returns the current SplitButtonBuilder instance.
Sets a value controlling how the color is applied.
public SplitButtonBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current SplitButtonBuilder 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 SplitButton. 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 SplitButtonBuilder Icon(Action<SplitButtonIconSettingsBuilder> configurator)
The SplitButtonIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of SplitButtonBuilder .
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 SplitButton. 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 SplitButtonBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of SplitButtonBuilder .
Defines a CSS class - or multiple classes separated by spaced - which are applied to a span element inside the SplitButton. Allows the usage of custom icons.
public SplitButtonBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current SplitButtonBuilder instance.
Defines a URL, which will be used for an img element inside the SplitButton. 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 SplitButtonBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current SplitButtonBuilder instance.
Specifies the menu buttons of the SplitButton.
public SplitButtonBuilder Items(Action<SplitButtonItemFactory> configurator)
The SplitButtonItemFactory for the items setting.
Returns:Returns the current instance of SplitButtonBuilder .
Specifies a custom template for the menu items.
public SplitButtonBuilder ItemTemplate(string value)
The value for ItemTemplate
Returns:Returns the current SplitButtonBuilder instance.
Specifies a custom template for the menu items.
public SplitButtonBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the itemtemplate.
Returns:Returns the current SplitButtonBuilder instance.
Specifies a custom template for the menu items.
public SplitButtonBuilder ItemTemplateHandler(string templateHandler)
The handler that returs the template for ItemTemplate
Returns:Returns the current SplitButtonBuilder instance.
Specifies a custom template for the menu items.
public SplitButtonBuilder ItemTemplateId(string templateId)
The ID of the template element for ItemTemplate
Returns:Returns the current SplitButtonBuilder instance.
Specifies a custom template for the menu items.
public SplitButtonBuilder ItemTemplateView(IHtmlContent templateView)
The view that contains the template for ItemTemplate
Returns:Returns the current SplitButtonBuilder instance.
Allows localization of the strings that are used in the widget.
public SplitButtonBuilder Messages(Action<SplitButtonMessagesSettingsBuilder> configurator)
The SplitButtonMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of SplitButtonBuilder .
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public SplitButtonBuilder Popup(Action<SplitButtonPopupSettingsBuilder> configurator)
The SplitButtonPopupSettingsBuilder for the popup setting.
Returns:Returns the current instance of SplitButtonBuilder .
Sets a value controlling the border radius.
public SplitButtonBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current SplitButtonBuilder instance.
Sets the size of the component.
public SplitButtonBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current SplitButtonBuilder 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 SplitButton. 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 SplitButtonBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:Returns the current SplitButtonBuilder instance.
Sets the text content of the button.
public SplitButtonBuilder Text(string value)
The value for text content.
Returns:Returns the current SplitButtonBuilder instance.
Sets the color of the component according to the applied theme.
public SplitButtonBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:Returns the current SplitButtonBuilder instance.