elementAttr
Specifies the global attributes to be attached to the UI component's container element.
jQuery
$(function(){ $("#chatContainer").dxChat({ // ... elementAttr: { id: "elementId", class: "class-name" } }); });
Angular
<dx-chat ... [elementAttr]="{ id: 'elementId', class: 'class-name' }"> </dx-chat>
import { DxChatModule } from "devextreme-angular"; // ... export class AppComponent { // ... } @NgModule({ imports: [ // ... DxChatModule ], // ... })
Vue
<template> <DxChat ... :element-attr="chatAttributes"> </DxChat> </template> <script> import DxChat from 'devextreme-vue/chat'; export default { components: { DxChat }, data() { return { chatAttributes: { id: 'elementId', class: 'class-name' } } } } </script>
React
import React from 'react'; import Chat from 'devextreme-react/chat'; class App extends React.Component { chatAttributes = { id: 'elementId', class: 'class-name' } render() { return ( <Chat ... elementAttr={this.chatAttributes}> </Chat> ); } } export default App;
height
This property accepts a value of one of the following types:
Number
The height in pixels.String
A CSS-accepted measurement of height. For example,"55px"
,"20vh"
,"80%"
,"inherit"
.Function (deprecated since v21.2)
Refer to the W0017 warning description for information on how you can migrate to viewport units.
onDisposing
Name | Type | Description |
---|---|---|
element | ||
component | Chat |
onInitialized
Name | Type | Description |
---|---|---|
element | ||
component | Chat |
onMessageEntered
Name | Type | Description |
---|---|---|
component | Chat | |
element | ||
event | Event (jQuery or EventObject) |
|
message |
onMessageSend
Name | Type | Description |
---|---|---|
component | Chat | |
element | ||
event | Event (jQuery or EventObject) |
|
message |
onOptionChanged
Name | Type | Description |
---|---|---|
value | any | |
previousValue | any | |
name | ||
fullName | ||
element | ||
component | Chat |
onTypingEnd
Name | Type | Description |
---|---|---|
component | Chat | |
element | ||
user |
onTypingStart
Name | Type | Description |
---|---|---|
component | Chat | |
element | ||
event | Event (jQuery or EventObject) |
|
user |
rtlEnabled
When this property is set to true, the UI component text flows from right to left, and the layout of elements is reversed. To switch the entire application/site to the right-to-left representation, assign true to the rtlEnabled field of the object passed to the DevExpress.config(config) method.
DevExpress.config({ rtlEnabled: true });
width
This property accepts a value of one of the following types:
Number
The width in pixels.String
A CSS-accepted measurement of width. For example,"55px"
,"20vw"
,"80%"
,"auto"
,"inherit"
.Function (deprecated since v21.2)
Refer to the W0017 warning description for information on how you can migrate to viewport units.
If you have technical questions, please create a support ticket in the DevExpress Support Center.