@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
43 lines (42 loc) • 1.28 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { SVGIcon } from "@progress/kendo-svg-icons";
import { Message } from "./message.interface";
/**
* Defines the structure of a message action in the Chat interface.
* Use these actions to perform specific operations on messages.
*/
export interface MessageAction {
/**
* Sets the unique identifier for the action.
*/
id: string | number;
/**
* Sets the display text for the action.
*/
label: string;
/**
* Sets the icon name for the action.
*/
icon?: string;
/**
* Sets the SVG icon object for the action.
*/
svgIcon?: SVGIcon;
/**
* Determines whether the action is disabled.
*/
disabled?: boolean;
}
export interface MessageActionEvent {
/**
* Specifies the action that was triggered.
*/
action: MessageAction;
/**
* Specifies the message associated with the action.
*/
message: Message;
}