Defines the fluent API for configuring ChatFileAttachmentSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChatFileAttachmentSettingsBuilder
Inheritance: objectChatFileAttachmentSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the ChatFileAttachmentSettingsBuilder class.
public ChatFileAttachmentSettingsBuilder(ChatFileAttachmentSettings container)
Properties
protected ChatFileAttachmentSettings Container { get; }
Methods
The accept attribute for the file input, specifying which file types are allowed.
public ChatFileAttachmentSettingsBuilder Accept(string value)
The value for Accept
Returns:ChatFileAttachmentSettingsBuilder
Returns the current ChatFileAttachmentSettingsBuilder instance.
The fill mode for the button (e.g., "flat", "solid", "outline").
public ChatFileAttachmentSettingsBuilder FillMode(ButtonFillMode value)
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.
public ChatFileAttachmentSettingsBuilder Icon(Action<ChatFileAttachmentIconSettingsBuilder> configurator)
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.
public ChatFileAttachmentSettingsBuilder Icon(string icon)
The icon.
Returns:ChatFileAttachmentSettingsBuilder
Returns the current instance of ChatFileAttachmentSettingsBuilder .
Whether to allow multiple file selection.
public ChatFileAttachmentSettingsBuilder Multiple(bool value)
The value for Multiple
Returns:ChatFileAttachmentSettingsBuilder
Returns the current ChatFileAttachmentSettingsBuilder instance.
File restrictions configuration.
public ChatFileAttachmentSettingsBuilder Restrictions(Action<ChatFileAttachmentRestrictionsSettingsBuilder> configurator)
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").
public ChatFileAttachmentSettingsBuilder Rounded(Rounded value)
The value for Rounded
Returns:ChatFileAttachmentSettingsBuilder
Returns the current ChatFileAttachmentSettingsBuilder instance.
The size of the button (e.g., "small", "medium", "large").
public ChatFileAttachmentSettingsBuilder Size(ComponentSize value)
The value for Size
Returns:ChatFileAttachmentSettingsBuilder
Returns the current ChatFileAttachmentSettingsBuilder instance.
The theme color for the button (e.g., "base", "primary", "secondary").
public ChatFileAttachmentSettingsBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:ChatFileAttachmentSettingsBuilder
Returns the current ChatFileAttachmentSettingsBuilder instance.