New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DialogAction

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DialogActionBuilder

Inheritance: objectDialogActionBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DialogActionBuilder method.

C#
public DialogActionBuilder(DialogAction container)
Parameters:containerDialogAction

Properties

Gets the settings being configured.

C#
protected DialogAction Container { get; }

Methods

The callback function to be called after pressing the action button.

C#
public DialogActionBuilder Action(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

The callback function to be called after pressing the action button.

C#
public DialogActionBuilder Action(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

Adds a custom class to the action button.

C#
public DialogActionBuilder CssClass(string value)
Parameters:valuestring

The value for CssClass

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

Sets a value controlling how the color is applied.

C#
public DialogActionBuilder FillMode(ButtonFillMode value)
Parameters:valueButtonFillMode

The value for FillMode

Returns:

DialogActionBuilder

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.

C#
public DialogActionBuilder Icon(Action<DialogActionIconSettingsBuilder> configurator)
Parameters:configuratorAction<DialogActionIconSettingsBuilder>

The DialogActionIconSettingsBuilder for the icon setting.

Returns:

DialogActionBuilder

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.

C#
public DialogActionBuilder Icon(string icon)
Parameters:iconstring

The icon.

Returns:

DialogActionBuilder

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.

C#
public DialogActionBuilder IconClass(string value)
Parameters:valuestring

The value for IconClass

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

A boolean property indicating whether the action button will be decorated as primary button or not.

C#
public DialogActionBuilder Primary(bool value)
Parameters:valuebool

The value for Primary

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

Sets a value controlling the border radius.

C#
public DialogActionBuilder Rounded(Rounded value)
Parameters:valueRounded

The value for Rounded

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

Sets the size of the component.

C#
public DialogActionBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value for Size

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

The text to be shown in the action's button.

C#
public DialogActionBuilder Text(string value)
Parameters:valuestring

The value for Text

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.

Sets the color of the component according to the applied theme.

C#
public DialogActionBuilder ThemeColor(ThemeColor value)
Parameters:valueThemeColor

The value for ThemeColor

Returns:

DialogActionBuilder

Returns the current DialogActionBuilder instance.