@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
42 lines (41 loc) • 1.55 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { FileAction } from "./file-action";
import { MessageAction } from "./message-action";
import { MessageWidthMode } from "./message-width-mode";
/**
* Represents the settings for the Chat message ([see example](slug:databinding_chat)).
*
*/
export interface MessageSettings {
/**
* If set to `true`, enables the expanding/collapsing of long messages.
*/
allowMessageCollapse?: boolean;
/**
* Sets the array of actions that will be displayed in the message toolbar.
*/
messageToolbarActions?: MessageAction[];
/**
* Sets the array of actions that will be displayed in the message context menu.
*/
messageContextMenuActions?: MessageAction[];
/**
* Sets the array of actions that will be displayed for the message files.
*/
fileActions?: FileAction[];
/**
* Sets the mode that will be used to determine the message width.
*/
messageWidthMode?: MessageWidthMode;
/**
* Sets the visibility of the author's avatar for the message group.
*/
showAvatar?: boolean;
/**
* Sets the visibility of the author's username for the message group.
*/
showUsername?: boolean;
}