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/footer.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,13 @@ control: Chat UI
7
7
documentation: ug
8
8
---
9
9
10
-
# Footer in Blazor Chat UI component
10
+
# Footer in the Blazor Chat Component
11
11
12
-
## Show or hide footer
12
+
The Blazor Chat component includes a footer that serves as the primary user interaction area, typically containing the message input field and send button.
13
13
14
-
You can use [ShowFooter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_ShowFooter) property to enable or disable the chat footer.
14
+
## Show or hide the footer
15
+
16
+
The chat footer in the Blazor Chat UI component is displayed by default and includes the text input field along with the send button. Its visibility can be managed using the [ShowFooter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_ShowFooter) and submission. This configuration is useful in scenarios such as read-only chat views or restricted interaction modes.
Copy file name to clipboardExpand all lines: blazor/chat-ui/getting-started-webapp.md
+29-32Lines changed: 29 additions & 32 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
-
# Getting Started with Blazor Chat UI in Blazor Web App
10
+
# Getting Started with Blazor Chat UI in a Blazor Web App
11
11
12
-
This section briefly explains about how to include [Blazor Chat UI](https://www.syncfusion.com/blazor-components/blazor-chat-ui) component in your Blazor Web App using [Visual Studio](https://visualstudio.microsoft.com/vs/)and Visual Studio Code.
12
+
This section explains how to add the [Blazor Chat UI](https://www.syncfusion.com/blazor-components/blazor-chat-ui) component to your Blazor Web App using [Visual Studio](https://visualstudio.microsoft.com/vs/)or Visual Studio Code.
13
13
14
-
To get started quickly with Blazor Chat UI component, check on the following video:
14
+
To get started quickly with the Blazor Chat UI component, refer to the following video guide:
@@ -24,19 +24,19 @@ To get started quickly with Blazor Chat UI component, check on the following vid
24
24
25
25
*[System requirements for Blazor components](https://blazor.syncfusion.com/documentation/system-requirements)
26
26
27
-
## Create a new Blazor Web App in Visual Studio
27
+
## Create a New Blazor Web App in Visual Studio
28
28
29
-
You can create a **Blazor Web App** using Visual Studio 2022 via[Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio).
29
+
A **Blazor Web App**can be created using Visual Studio 2022 with either the official[Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio).
30
30
31
-
You need to configure the corresponding[Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs)while creating a Blazor Web Application.
31
+
Ensure you configure the appropriate[Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs)when creating the Blazor Web Application.
32
32
33
33
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor InteractiveChat and Themes NuGet in the App
34
34
35
-
To add **Blazor Chat UI** component in the app, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), search and install `Syncfusion.Blazor.InteractiveChat` and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/).
35
+
To add the **Blazor Chat UI** component to your app, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), then search for and install `Syncfusion.Blazor.InteractiveChat` and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/).
36
36
37
37
If you utilize `WebAssembly or Auto` render modes in the Blazor Web App need to be install Syncfusion<supstyle="font-size:70%">®</sup> Blazor components NuGet packages within the client project.
38
38
39
-
Alternatively, you can utilize the following package manager command to achieve the same.
39
+
Alternatively, the required packages can be installed using the Package Manager Console commands.
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages)topic for available NuGet packages list with component details.
50
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available at[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages)documentation for a complete list of available packages.
*[System requirements for Blazor components](https://blazor.syncfusion.com/documentation/system-requirements)
59
59
60
-
## Create a new Blazor Web App in Visual Studio Code
60
+
## Create a New Blazor Web App in Visual Studio Code
61
61
62
-
You can create a **Blazor Web App** using Visual Studio Code via[Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project).
62
+
A **Blazor Web App**can be created using Visual Studio code with either the official[Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project).
63
63
64
-
You need to configure the corresponding[Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc)while creating a Blazor Web Application.
64
+
To ensure proper functionality of a Blazor Web App, configure the appropriate[Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc)during application setup.
65
65
66
-
For example, in a Blazor Web App with the `Auto` interactive render mode, use the following commands.
66
+
For example, to create a Blazor Web App with `Auto` interactive render mode, use the following commands:
67
67
68
68
{% tabs %}
69
69
{% highlight c# tabtitle="Blazor Web App" %}
@@ -97,20 +97,18 @@ dotnet restore
97
97
98
98
{% endtabs %}
99
99
100
-
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages)topic for available NuGet packages list with component details.
100
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available at[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages)documentation for a complete list of available packages.
101
101
102
102
{% endtabcontent %}
103
103
104
104
{% endtabcontents %}
105
105
106
106
## Register Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service
107
107
108
-
| Interactive Render Mode | Description |
109
-
| -- | -- |
110
-
| WebAssembly or Auto | Open **~/_Imports.razor** file from the client project.|
111
-
| Server | Open **~/_import.razor** file, which is located in the `Components` folder.|
108
+
First, import the `Syncfusion.Blazor` and `Syncfusion.Blazor.InteractiveChat` namespace.
112
109
113
-
Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.InteractiveChat` namespace.
110
+
***WebAssembly or Auto Mode**: Open the `~/_Imports.razor` file from the `.Client` project.
111
+
***Server Mode**: Open the `~/_Imports.razor` file located in the main project's `Components` folder.
114
112
115
113
{% tabs %}
116
114
{% highlight C# tabtitle="~/_Imports.razor" %}
@@ -121,9 +119,9 @@ Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.InteractiveChat` namespace
121
119
{% endhighlight %}
122
120
{% endtabs %}
123
121
124
-
Now, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service in the**~/Program.cs** file of your Blazor Web App.
122
+
Next, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in your**~/Program.cs** file.
125
123
126
-
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, you need to register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in both **~/Program.cs** files of your Blazor Web App.
124
+
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service must be registered in both **~/Program.cs** files of the Blazor Web App.
The theme stylesheet and script can be accessed from NuGet through [Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets). Include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/Components/App.razor** file as shown below:
184
182
@@ -196,18 +194,17 @@ The theme stylesheet and script can be accessed from NuGet through [Static Web A
196
194
197
195
N> Check out the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes) topic to discover various methods ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)) for referencing themes in your Blazor application. Also, check out the [Adding Script Reference](https://blazor.syncfusion.com/documentation/common/adding-script-references) topic to learn different approaches for adding script references in your Blazor application.
Add the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Chat UI component in the **~Pages/.razor** file. If an interactivity location as `Per page/component` in the web app, define a render mode at the top of the `~Pages/.razor` component, as follows:
N> If an**Interactivity Location** is set to `Global` and the **Render Mode** is set to `Auto` or `WebAssembly` or `Server`, the render mode is configured in the `App.razor` file by default.
207
+
N> If the**Interactivity Location** is set to `Global`, the **Render Mode** is configured globally in the `App.razor` file and does not need to be specified on each component.
211
208
212
209
{% tabs %}
213
210
{% highlight razor %}
@@ -230,13 +227,13 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
*Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Chat UI component in your default web browser.
230
+
Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. The Syncfusion<supstyle="font-size:70%">®</sup> Blazor Chat UI component will be rendered in your browser.
You can use the [Messages](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_Messages) property to add messages and the [User](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_User) property to configure the current user for the chat.
236
+
Use the [Messages](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_Messages) property to populate the chat with an initial set of messages and the [User](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfChatUI.html#Syncfusion_Blazor_InteractiveChat_SfChatUI_User) property to define the current user.
Copy file name to clipboardExpand all lines: blazor/chat-ui/getting-started.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Getting Started with Blazor Chat UI Component
11
11
12
-
This section briefly explains about how to include [Blazor Chat UI](https://www.syncfusion.com/blazor-components/blazor-chat-ui) component in your Blazor WebAssembly App using Visual Studio and Visual Studio Code.
12
+
This section explains how to add the [Blazor Chat UI](https://www.syncfusion.com/blazor-components/blazor-chat-ui) component to a Blazor WebAssembly App using Visual Studio and Visual Studio Code.
13
13
14
14
{% tabcontents %}
15
15
@@ -25,7 +25,7 @@ You can create a **Blazor WebAssembly App** using Visual Studio via [Microsoft T
25
25
26
26
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor InteractiveChat and Themes NuGet in the App
27
27
28
-
To add **Blazor Chat UI** component in the app, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), search and install `Syncfusion.Blazor.InteractiveChat` and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/). Alternatively, you can utilize the following package manager command to achieve the same.
28
+
To add the **Blazor Chat UI** component to the application, open the NuGet Package Manager in Visual Studio (Tools → NuGet Package Manager → Manage NuGet Packages for Solution), search for and install `Syncfusion.Blazor.InteractiveChat` and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/). Alternatively, the required packages can be installed using the Package Manager Console command.
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for available NuGet packages list with component details.
39
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available on[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for a complete list of available packages with component details.
40
40
41
41
{% endtabcontent %}
42
42
@@ -65,9 +65,9 @@ cd BlazorApp
65
65
66
66
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor InteractiveChat and Themes NuGet in the App
67
67
68
-
* Press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the integrated terminal in Visual Studio Code.
69
-
* Ensure you’re in the project root directory where your`.csproj` file is located.
70
-
* Run the following command to install a[Syncfusion.Blazor.InteractiveChat](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/) NuGet package and ensure all dependencies are installed.
68
+
*Press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the integrated terminal in Visual Studio Code.
69
+
*Ensure the current working directory is set to the project root where the`.csproj` file is located.
70
+
*Run the following command to install the[Syncfusion.Blazor.InteractiveChat](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/) NuGet packages.
71
71
72
72
{% tabs %}
73
73
@@ -81,15 +81,15 @@ dotnet restore
81
81
82
82
{% endtabs %}
83
83
84
-
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for available NuGet packages list with component details.
84
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available on[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for a complete list of available packages with component details.
85
85
86
86
{% endtabcontent %}
87
87
88
88
{% endtabcontents %}
89
89
90
90
## Register Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service
91
91
92
-
Open **~/_Imports.razor** file and import the `Syncfusion.Blazor` and `Syncfusion.Blazor.InteractiveChat`namespace.
92
+
Open the **~/_Imports.razor** file and import the `Syncfusion.Blazor` and `Syncfusion.Blazor.InteractiveChat`namespaces.
93
93
94
94
{% tabs %}
95
95
{% highlight razor tabtitle="~/_Imports.razor" %}
@@ -137,7 +137,7 @@ N> Check out the [Blazor Themes](https://blazor.syncfusion.com/documentation/app
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Chat UI component in your default web browser.
152
+
*Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Chat UI component in your default web browser.
0 commit comments