Components | Description |
---|---|
Users | The Users component is designed to display a list of User . This essentially represents your recent conversation history. |
Messages | The Messages component is designed to manage the messaging interaction for individual User's conversations. |
OnItemClick
of the Users Component, UsersWithMessages achieves navigation from Users to Messages component.
Users
by name and setting the limit to 10 using the usersRequestBuilder
.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The UsersWithMessages does not produce any events but its component does.
UsersWithMessagesStyle
to the UsersWithMessages Component to customize the styling.
user
method with a User object as input to the UsersWithMessages component. This will automatically direct you to the Messages component for the specified User
.
Property | Description | Code |
---|---|---|
isMobileView | A boolean indicating if the component should render in mobile view for optimized display on mobile devices. | isMobileView: false |
user | Use the user method with a User object as input for the UsersWithMessages component to navigate directly to the Messages component for the specified User. | user={chatUser} |
messageText | It represents the textual content which will be replaced with the messages component when user clicks on a particular user chat. | messageText="Your Custom Message Text" |
Users
subcomponent to navigate the user from Users to MessagesMessages
subcomponent to navigate from Messages to DetailsonItemClick
and menus
, the default behavior of UsersWithMessages will also be overridden.Users
and Messages
component. Hence, each of these components will have its individual `Configuration“.
Configurations
expose properties that are available in its individual components.usersConfiguration
. You can accomplish this by employing the usersConfiguration
props as demonstrated below:
UsersConfiguration
can be found under Users. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Users subcomponent and, in addition, you only want to display five users sort by name.
You can modify the style using the usersStyle
property and filter the list with the usersRequestBuilder
property.
messagesConfiguration
props as demonstrated below:
MessagesConfiguration
can be found under Messages. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Messages subcomponent and, in addition, you only want to hide message header.
You can modify the style using the messagesStyle
property and hide the message header with the hideMessageHeader
property.