Kendo UI fileAttachment TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("file-attachment", ParentTag = "kendo-chat", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("restrictions", new string[] { "icon" })]
[SuppressTagRendering]
public class ChatFileAttachmentSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChatFileAttachmentSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chat name="chat">
<file-attachment accept="image/*" />
</kendo-chat>
Child Tags
Constructors
Initializes a new instance of the ChatFileAttachmentSettingsTagHelper class.
public ChatFileAttachmentSettingsTagHelper()
Properties
The accept attribute for the file input, specifying which file types are allowed.
public string Accept { get; set; }
The fill mode for the button (e.g., "flat", "solid", "outline").
public ButtonFillMode? FillMode { get; set; }
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.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
The border radius for the button (e.g., "small", "medium", "large", "full").
public Rounded? Rounded { get; set; }
The size of the button (e.g., "small", "medium", "large").
public ComponentSize? Size { get; set; }
The theme color for the button (e.g., "base", "primary", "secondary").
public ThemeColor? ThemeColor { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.