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

Defines the fluent API for configuring the ChatFileAttachmentSettings settings.

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

C#
public ChatFileAttachmentSettingsBuilder(ChatFileAttachmentSettings settings)
Parameters:settingsChatFileAttachmentSettings

The ChatFileAttachmentSettings

Methods

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

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

The value that configures the accept.

Returns:

ChatFileAttachmentSettingsBuilder

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

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

The value that configures the fillmode.

Returns:

ChatFileAttachmentSettingsBuilder

The icon name for the file select button.

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

The value that configures the icon.

Returns:

ChatFileAttachmentSettingsBuilder

Whether to allow multiple file selection.

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

The value that configures the multiple.

Returns:

ChatFileAttachmentSettingsBuilder

File restrictions configuration.

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

The action that configures the restrictions.

Returns:

ChatFileAttachmentSettingsBuilder

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

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

The value that configures the rounded.

Returns:

ChatFileAttachmentSettingsBuilder

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

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

The value that configures the size.

Returns:

ChatFileAttachmentSettingsBuilder

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

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

The value that configures the themecolor.

Returns:

ChatFileAttachmentSettingsBuilder