DialogActionBuilder
Defines the fluent API for configuring DialogAction
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DialogActionBuilder
Inheritance: objectDialogActionBuilder
Inherited Members
Constructors
DialogActionBuilder method.
Properties
Gets the settings being configured.
protected DialogAction Container { get; }
Methods
The callback function to be called after pressing the action button.
public DialogActionBuilder Action(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current DialogActionBuilder instance.
The callback function to be called after pressing the action button.
public DialogActionBuilder Action(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current DialogActionBuilder instance.
Adds a custom class to the action button.
public DialogActionBuilder CssClass(string value)
The value for CssClass
Returns:Returns the current DialogActionBuilder instance.
Sets a value controlling how the color is applied.
public DialogActionBuilder FillMode(ButtonFillMode value)
The value for FillMode
Returns:Returns the current DialogActionBuilder 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 action button. For a list of available icon names, please refer to the List of Icons.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 DialogActionBuilder Icon(Action<DialogActionIconSettingsBuilder> configurator)
The DialogActionIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of DialogActionBuilder .
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 action button. For a list of available icon names, please refer to the List of Icons.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 DialogActionBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of DialogActionBuilder .
Defines a CSS class - or multiple classes separated by spaced - which are applied to a span element inside the action button. Allows the usage of custom icons.
public DialogActionBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current DialogActionBuilder instance.
A boolean property indicating whether the action button will be decorated as primary button or not.
public DialogActionBuilder Primary(bool value)
The value for Primary
Returns:Returns the current DialogActionBuilder instance.
Sets a value controlling the border radius.
public DialogActionBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current DialogActionBuilder instance.
Sets the size of the component.
public DialogActionBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current DialogActionBuilder instance.
The text to be shown in the action's button.
public DialogActionBuilder Text(string value)
The value for Text
Returns:Returns the current DialogActionBuilder instance.
Sets the color of the component according to the applied theme.
public DialogActionBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:Returns the current DialogActionBuilder instance.