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

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChatFileAttachmentSettings : JsonObject

Inheritance: objectJsonObjectChatFileAttachmentSettings

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

Constructors

Initialization for the ChatFileAttachmentSettings

C#
public ChatFileAttachmentSettings()

Properties

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

C#
public string Accept { get; set; }

Configures the file select button (attachment button) in the message input area. Can be set to: - true: Shows the button with default settings - false: Hides the button completely (does not render) - Object: Shows the button with custom configuration

C#
public bool Enabled { get; set; }

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

C#
public ButtonFillMode? FillMode { get; set; }

The icon name for the file select button.

C#
public string Icon { get; set; }

Whether to allow multiple file selection.

C#
public bool? Multiple { get; set; }

File restrictions configuration.

C#
public ChatFileAttachmentRestrictionsSettings Restrictions { get; set; }

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

C#
public Rounded? Rounded { get; set; }

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

C#
public ComponentSize? Size { get; set; }

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

C#
public ThemeColor? ThemeColor { get; set; }

Methods

Serialize current instance to Dictionary

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)