Skip to content

Commit 510ea28

Browse files
author
marker dao ®
committed
feat(chat.d.ts): Add MainActionButtonProperties
1 parent 1438994 commit 510ea28

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

packages/devextreme/js/ui/chat.d.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ export type InitializedEvent = InitializedEventInfo<dxChat>;
5151
*/
5252
export type OptionChangedEvent = EventInfo<dxChat> & ChangedOptionInfo;
5353

54+
/**
55+
* @docid _ui_chat_MainActionButtonClickEvent
56+
* @public
57+
* @type object
58+
* @inherits NativeEventInfo
59+
*/
60+
export type MainActionButtonClickEvent = NativeEventInfo<dxChat, InteractionEvent>;
61+
5462
/**
5563
* @docid _ui_chat_MessageEnteredEvent
5664
* @public
@@ -346,6 +354,31 @@ export type EmptyViewTemplateData = {
346354
};
347355
};
348356

357+
/**
358+
* @docid
359+
* @namespace DevExpress.ui.dxChat
360+
* @public
361+
*/
362+
export type MainActionButtonProperties = {
363+
/**
364+
* @docid
365+
* @public
366+
*/
367+
icon?: string;
368+
/**
369+
* @docid
370+
* @public
371+
* @default 'default'
372+
*/
373+
behavior?: 'default' | 'custom';
374+
/**
375+
* @docid
376+
* @type_function_param1 e:{ui/chat:MainActionButtonClickEvent}
377+
* @public
378+
*/
379+
onClick: ((e: MainActionButtonClickEvent) => void);
380+
};
381+
349382
/**
350383
* @deprecated use Properties instead
351384
* @namespace DevExpress.ui
@@ -446,6 +479,12 @@ export interface dxChatOptions extends WidgetOptions<dxChat> {
446479
* @public
447480
*/
448481
inputFieldText?: TextAreaProperties['value'];
482+
/**
483+
* @docid
484+
* @type MainActionButtonProperties
485+
* @public
486+
*/
487+
mainActionButtonOptions?: MainActionButtonProperties;
449488
/**
450489
* @docid
451490
* @default null

0 commit comments

Comments
 (0)