You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/chat-ui/globalization.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,13 @@ documentation: ug
9
9
10
10
# Globalization in Blazor Chat UI Component
11
11
12
+
The Syncfusion Blazor Chat component supports globalization features like `Localization` and `Right-to-Left (RTL)` alignment, enabling it to be adapted for different cultures and languages.
13
+
12
14
## Localization
13
15
14
-
`Blazor Chat UI` component can be localized. Refer to [Blazor Localization](https://blazor.syncfusion.com/documentation/common/localization) topic to localize Syncfusion<supstyle="font-size:70%">®</sup> Blazor components.
16
+
The `Localization` feature allows for the translation of static text elements within the Chat component to a specific language.
17
+
To localize the Chat UI component, refer to the guidance provided in the main [Blazor Localization](https://blazor.syncfusion.com/documentation/common/localization) topic to localize Syncfusion<supstyle="font-size:70%">®</sup> Blazor components.
15
18
16
-
## RTL
19
+
## Right-to-Left (RTL)
17
20
18
-
RTL provides an option to switch the text direction and layout of the Chat UI component from right to left. Refer to [Blazor RTL](https://blazor.syncfusion.com/documentation/common/right-to-left) topic to provide RTL support for the Syncfusion<supstyle="font-size:70%">®</sup> Blazor components.
21
+
The Right-to-Left (RTL) feature reverses the component's layout and text direction to support languages that are read from right to left, such as Arabic or Hebrew. Refer to [Blazor RTL](https://blazor.syncfusion.com/documentation/common/right-to-left) topic to provide RTL support for the Syncfusion<supstyle="font-size:70%">®</sup> Blazor components.
Copy file name to clipboardExpand all lines: blazor/chat-ui/header.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ control: Chat UI
7
7
documentation: ug
8
8
---
9
9
10
-
# Header in Blazor Chat UI component
10
+
# Header in Blazor Chat UI Component
11
11
12
12
## Show or hide header
13
13
14
-
You can use [ShowHeader](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_ShowHeader) property to enable or disable the chat header. It contains the following options [HeaderText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderText) and [HeaderIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderIconCss).
14
+
The [ShowHeader](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_ShowHeader) property allows you to control the visibility of the chat header. When enabled, the header can display text and an icon, which are configured using the [HeaderText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderText) and [HeaderIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderIconCss) properties, respectively.
15
15
16
16
```cshtml
17
17
@@ -39,7 +39,7 @@ You can use [ShowHeader](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor
39
39
40
40
### Setting header text
41
41
42
-
You can use the [HeaderText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderText) property to display the text that appears in the header, which indicates the current username or the group name providing the context for the conversation.
42
+
Use the [HeaderText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderText) property to set the text that appears in the header. This typically displays the current username or group name to provide context for the conversation.
43
43
44
44
```cshtml
45
45
@@ -67,7 +67,7 @@ You can use the [HeaderText](https://help.syncfusion.com/cr/blazor/Syncfusion.Bl
67
67
68
68
### Setting header icon CSS
69
69
70
-
You can use the [HeaderIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderIconCss) property to customize the styling of the header icon.
70
+
The [HeaderIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_HeaderIconCss) property allows you to customize the styling of the header icon.allows customization of the header icon's styling in the Blazor Chat UI component by applying custom CSS classes.
71
71
72
72
```cshtml
73
73
@@ -95,15 +95,15 @@ You can use the [HeaderIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion
95
95
96
96
## Toolbar
97
97
98
-
You can render the Chat UI toolbar items by using the [HeaderToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbar.html),[HeaderToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html) tag directives.
98
+
Items can be rendered in the Chat UI header's toolbar using the [HeaderToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbar.html) and[HeaderToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html) tag directives.
99
99
100
100
### Setting items
101
101
102
-
Items can be constructed with the following built-in command types or item template.
102
+
Items can be configured using built-in command types or a custom item template, as detailed in the following sections.
103
103
104
104
#### Adding icon CSS
105
105
106
-
You can customize the header toolbar icons by using the [IconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_IconCss) property.
106
+
Customize the header toolbar icons by using the [IconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_IconCss) property.
107
107
108
108
```cshtml
109
109
@@ -137,9 +137,9 @@ You can customize the header toolbar icons by using the [IconCss](https://help.s
137
137
138
138
#### Setting item type
139
139
140
-
You can change the header toolbar item type by using the [Type](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Type) property. The `Type` supports four types of items such as `Button`, `Separator`, `Spacer` and `Input`. By default, the type is `Button`.
140
+
To change the header toolbar item type, use the [Type](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Type) property. The `Type`property supports four item types: `Button`, `Separator`, `Spacer`, and `Input`. The default type is `Button`.
141
141
142
-
In the following example, header toolbar item type is set as`Button`.
142
+
In the following example, a header toolbar item type is set to`Button`.
143
143
144
144
```cshtml
145
145
@@ -173,7 +173,7 @@ In the following example, header toolbar item type is set as `Button`.
173
173
174
174
#### Setting text
175
175
176
-
You can use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Text) property to set the text for the header toolbar item.
176
+
The [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Text) property sets the display text for a header toolbar item.
177
177
178
178
```cshtml
179
179
@@ -207,7 +207,7 @@ You can use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.I
207
207
208
208
#### Show or hide toolbar item
209
209
210
-
You can use the [Visible](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Visible) property to specify whether to show or hide the header toolbar item. By default, its value is `true`.
210
+
Use the [Visible](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Visible) property to specify whether a header toolbar item is shown or hidden. Its default value is `true`.
211
211
212
212
```cshtml
213
213
@@ -242,7 +242,7 @@ You can use the [Visible](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazo
242
242
243
243
#### Setting disabled
244
244
245
-
You can use the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Disabled) property to disable the header toolbar item. By default, its value is `false`.
245
+
The [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Disabled) property is used to disable a header toolbar item in the Blazor Chat UI component. Its default value is `false`.
246
246
247
247
```cshtml
248
248
@@ -277,7 +277,7 @@ You can use the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blaz
277
277
278
278
#### Setting tooltip text
279
279
280
-
You can use the [Tooltip](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Tooltip) property to specify the tooltip text to be displayed on hovering the header toolbar item.
280
+
Use the [Tooltip](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Tooltip) property to specify the tooltip text that displays when hovering over a header toolbar item.
281
281
282
282
```cshtml
283
283
@@ -311,7 +311,7 @@ You can use the [Tooltip](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazo
311
311
312
312
#### Setting CSS Class
313
313
314
-
You can use the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_CssClass) property to customize the header toolbar item.
314
+
The [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_CssClass) property allows applying a custom CSS class to a header toolbar item for styling purposes.
315
315
316
316
```cshtml
317
317
@@ -356,11 +356,11 @@ You can use the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blaz
356
356
357
357
#### Enabling tab key navigation in toolbar
358
358
359
-
You can use the [TabIndex](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_TabIndex) property of a header toolbar item to enable tab key navigation for the item. By default, the user can switch between items using the arrow keys, but the `TabIndex` property allows you to switch between items using the `Tab` and `Shift+Tab` keys as well.
359
+
Set the [TabIndex](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_TabIndex) property of a header toolbar item to enable tab key navigation. By default, navigation between items is handled using arrow keys, but the TabIndex property allows switching between items using the `Tab` and `Shift+Tab` keys.
360
360
361
361
To use the `TabIndex` property, set it for each Toolbar item which you want to enable tab key navigation. The `TabIndex` property should be set to a positive integer value. A value of `0` or a negative value will disable tab key navigation for the item.
362
362
363
-
For example, to enable tab key navigation for two Toolbar items you can use the following code:
363
+
To enable `Tab` key navigation for two toolbar items, use the following code:
364
364
365
365
```cshtml
366
366
@@ -378,9 +378,9 @@ For example, to enable tab key navigation for two Toolbar items you can use the
378
378
379
379
```
380
380
381
-
With the above code, the user can switch between the two Toolbar items using the Tab and Shift+Tab keys, in addition to using the arrow keys. The items will be navigated in the order specified by the`TabIndex` values.
381
+
With the above configuration, the user can switch between the two toolbar items using the `Tab` and `Shift+Tab` keys, and the items will be navigated in the order specified by their`TabIndex` values.
382
382
383
-
If you set the `TabIndex`value to 0 for all Toolbar items, tab key navigation will be based on the element order rather than the `TabIndex` values. For example:
383
+
If the `TabIndex`is set to 0 for all toolbar items, tab key navigation will be based on the element order in the DOM.
384
384
385
385
```cshtml
386
386
@@ -398,11 +398,11 @@ If you set the `TabIndex` value to 0 for all Toolbar items, tab key navigation w
398
398
399
399
```
400
400
401
-
In this case, the user can switch between the two Toolbar items using the Tab and Shift+Tab keys, and the items will be navigated in the order in which they appear in the DOM.
401
+
In this case, the user can navigate between the two items using the `Tab` and `Shift+Tab` keysin the order they appear in the DOM.
402
402
403
403
#### Setting template
404
404
405
-
You can use the [Template](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Template) tag directive to add custom header toolbar item in the Chat UI component. Template property can be given as the `HTML element` or `RenderFragment`.
405
+
Use the [Template](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbarItem.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbarItem_Template) tag directive to render a custom component or HTML element as a header toolbar item. Template property can be given as the `HTML element` or `RenderFragment`.
406
406
407
407
```cshtml
408
408
@@ -454,7 +454,7 @@ You can use the [Template](https://help.syncfusion.com/cr/blazor/Syncfusion.Blaz
454
454
455
455
### Item clicked
456
456
457
-
You can define [ItemClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbar.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbar_ItemClicked) event in the [HeaderToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbar.html) tag directive which will be triggered when the header toolbar item is clicked.
457
+
Define the [ItemClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbar.html#Syncfusion_Blazor_InteractiveChat_HeaderToolbar_ItemClicked) event handle for the [HeaderToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.HeaderToolbar.html) tag directive which will be triggered when the header toolbar item is clicked.
458
458
459
459
```cshtml
460
460
@@ -477,4 +477,4 @@ You can define [ItemClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Bl
Copy file name to clipboardExpand all lines: blazor/chat-ui/load-on-demand.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ control: Chat UI
7
7
documentation: ug
8
8
---
9
9
10
-
# Load on-demand in Blazor Chat UI component
10
+
# Load on-demand in Blazor Chat UI Component
11
11
12
12
You can use the [LoadOnDemand](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_LoadOnDemand) property to load messages dynamically when the scroll reaches the top of the message list improving performance and reducing load times, particularly in long conversations. This ensures a smooth user experience by only fetching messages as needed rather than loading the entire conversation at once.
Copy file name to clipboardExpand all lines: blazor/chat-ui/mention.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ documentation: ug
9
9
10
10
# Mention Integration in Blazor Chat UI component
11
11
12
-
The Syncfusion<supstyle="font-size:70%">®</sup> ChatUI allows users to mention others in messages using the `@` character, with an dropdown for selecting users. The following sections explain how to configure mentions
12
+
The Syncfusion<supstyle="font-size:70%">®</sup> Chat UI allows users to mention others in messages using the `@` character, which displays a dropdown for selecting users. The following sections explain how to configure mentions.
13
13
14
14
## Configure Mention Users
15
15
16
-
You can use the [MentionUsers](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_MentionUsers) property to define an array of users for the mention suggestion popup.
16
+
Use the [MentionUsers](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_MentionUsers) property to define a list of users for the mention suggestion popup.
17
17
18
18
```cshtml
19
19
@using Syncfusion.Blazor.InteractiveChat
@@ -46,7 +46,7 @@ You can use the [MentionUsers](https://help.syncfusion.com/cr/blazor/Syncfusion.
46
46
47
47
## Customize the Mention trigger character
48
48
49
-
You can use the [MentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_MentionChar) property to customize the character which triggers the mention popup. The default value is `@`.
49
+
Use the [MentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_MentionChar) property to customize the character that triggers the mention popup. The default value is `@`.
50
50
51
51
```cshtml
52
52
@@ -78,11 +78,11 @@ You can use the [MentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.B
You can use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.ChatMessage.html#Syncfusion_Blazor_InteractiveChat_ChatMessage_Text) property in the [ChatMessage](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.ChatMessage.html#Syncfusion_Blazor_InteractiveChat_ChatMessage) to include predefined mentions in chat messages. The mentions field stores the selected users for each message.
83
+
Use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.ChatMessage.html#Syncfusion_Blazor_InteractiveChat_ChatMessage_Text) property in the [ChatMessage](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.ChatMessage.html#Syncfusion_Blazor_InteractiveChat_ChatMessage) to include predefined mentions in chat messages. The mentions logic maps placeholders like `{0}` and `{1}` to users listed in the message's `MentionUsers` property.
84
84
85
-
> The `MentionUsers` property in a message contains a list of users, mapped by their order where the placeholder {0} is replaced by the first user, {1} by the second, and so on, automatically generating mentions in the user interface. If a placeholder's index is negative or exceeds the bounds of the mentionUsers array (e.g., using {5} with only two users), the mapping for that placeholder fails, and the placeholder text itself (e.g., {5}) is displayed in the final message.
85
+
> The `MentionUsers` property in a message contains a list of users, mapped by their order where `{0}` is replaced by the first user, `{1}` by the second, and so on. If a placeholder's index is out of bounds (e.g., using `{5}` with only two users), the placeholder text itself (e.g., `{5}`) is displayed.
86
86
87
87
```cshtml
88
88
@@ -114,7 +114,7 @@ You can use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.I
114
114
115
115
## Configure mentionSelect
116
116
117
-
You can use the [ValueSelecting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_ValueSelecting) event which triggers when a user selects an item from the mention dropdown, providing access to the selected user’s details for custom handling.
117
+
Use the [ValueSelecting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_ValueSelecting) event to execute custom logic when a user is selected from the mention dropdown. The event provides access to the selected user’s details.
118
118
119
119
```cshtml
120
120
@@ -141,4 +141,4 @@ You can use the [ValueSelecting](https://help.syncfusion.com/cr/blazor/Syncfusio
0 commit comments