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

Defines the fluent API for configuring ChatFileAttachmentSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChatFileAttachmentSettingsBuilder

Inheritance: objectChatFileAttachmentSettingsBuilder

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

Constructors

Initializes a new instance of the ChatFileAttachmentSettingsBuilder class.

C#
public ChatFileAttachmentSettingsBuilder(ChatFileAttachmentSettings container)
Parameters:containerChatFileAttachmentSettings

Properties

C#
protected ChatFileAttachmentSettings Container { get; }

Methods

The accept attribute for the file input, specifying which file types are allowed.

C#
public ChatFileAttachmentSettingsBuilder Accept(string value)
Parameters:valuestring

The value for Accept

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current ChatFileAttachmentSettingsBuilder instance.

The fill mode for the button (e.g., "flat", "solid", "outline").

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

The value for FillMode

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current ChatFileAttachmentSettingsBuilder instance.

The icon name for the file select button.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 ChatFileAttachmentSettingsBuilder Icon(Action<ChatFileAttachmentIconSettingsBuilder> configurator)
Parameters:configuratorAction<ChatFileAttachmentIconSettingsBuilder>

The ChatFileAttachmentIconSettingsBuilder for the icon setting.

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current instance of ChatFileAttachmentSettingsBuilder .

The icon name for the file select button.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 ChatFileAttachmentSettingsBuilder Icon(string icon)
Parameters:iconstring

The icon.

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current instance of ChatFileAttachmentSettingsBuilder .

Whether to allow multiple file selection.

C#
public ChatFileAttachmentSettingsBuilder Multiple(bool value)
Parameters:valuebool

The value for Multiple

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current ChatFileAttachmentSettingsBuilder instance.

File restrictions configuration.

C#
public ChatFileAttachmentSettingsBuilder Restrictions(Action<ChatFileAttachmentRestrictionsSettingsBuilder> configurator)
Parameters:configuratorAction<ChatFileAttachmentRestrictionsSettingsBuilder>

The ChatFileAttachmentRestrictionsSettingsBuilder for the restrictions setting.

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current instance of ChatFileAttachmentSettingsBuilder .

The border radius for the button (e.g., "small", "medium", "large", "full").

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

The value for Rounded

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current ChatFileAttachmentSettingsBuilder instance.

The size of the button (e.g., "small", "medium", "large").

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

The value for Size

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current ChatFileAttachmentSettingsBuilder instance.

The theme color for the button (e.g., "base", "primary", "secondary").

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

The value for ThemeColor

Returns:

ChatFileAttachmentSettingsBuilder

Returns the current ChatFileAttachmentSettingsBuilder instance.