@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
43 lines (42 loc) • 1.27 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 { ChatFile } from "./chat-file-interface";
/**
* Defines the structure of a file action in the Chat message.
* Use these actions to perform specific operations on files.
*/
export interface FileAction {
/**
* 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 FileActionEvent {
/**
* Specifies the file action that was triggered.
*/
action: FileAction;
/**
* Specifies the file associated with the action.
*/
file: ChatFile;
}