ChatInputAttachment Type documentation¶
TypeScript declaration¶
import type { ChatInputAttachment } from '@siemens/element-ng/chat-messages';Attachment item interface for file attachments in chat messages, extension of Attachment for SiAttachmentListComponent to use within SiChatInputComponent. Adds the action file information. Can be used within SiChatContainerComponent.
See: Attachment for base attachment interface
See: SiAttachmentListComponent for the attachment list component
See: SiChatInputComponent for the chat input component
See: SiChatContainerComponent for the base chat container component where this can be used
See: SiAiChatComponent for the AI chat container where this needs to be used
-
File object
-
File name
name:
stringInherited from Attachment¶ -
Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional)
previewTemplate?:
TemplateRef<any> | (() => TemplateRef<any>)Inherited from Attachment¶ -
File size in bytes
-
MIME type
Types Documentation¶
import type { Attachment } from '@siemens/element-ng/chat-messages';Attachment item interface for file attachments in chat messages, used by SiAttachmentListComponent and inside SiUserMessageComponent as well as SiChatInputComponent.
See: SiAttachmentListComponent for the attachment list component
See: SiUserMessageComponent for the user message
See: SiChatInputComponent for the chat input component
-
File name
-
Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional)
previewTemplate?:
TemplateRef<any> | (() => TemplateRef<any>)¶
Except where otherwise noted, content on this site is licensed under MIT License.