fileAttachmentBoolean|Object(default: true)

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

Example - Disable file select button

<div id="chat"></div>
<script>
$("#chat").kendoChat({
    fileAttachment: false,
    authorId: "user"
});
</script>

Example - Configure file select button

<div id="chat"></div>
<script>
$("#chat").kendoChat({
    fileAttachment: {
        icon: "attachment",
        fillMode: "flat",
        size: "medium",
        multiple: true,
        accept: "image/*,.pdf,.doc,.docx"
    },
    authorId: "user"
});
</script>
In this article
fileAttachmentRelated Properties
Not finding the help you need?
Contact Support