Skip to content

Commit 2b4f2bc

Browse files
Merge pull request #232 from Syncfusion-Content/development
DOCINFRA-2341_merged_using_automation
2 parents 03748b6 + 1f4ce2c commit 2b4f2bc

File tree

112 files changed

+598
-556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+598
-556
lines changed
Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,66 @@
11
---
22
layout: post
3-
title: Code Snippet | Blazor | Syncfusion
4-
description: Code snippet adding a Syncfusion Blazor component with various features in the Razor code editor file of the Blazor Application.
3+
title: Code Snippets - Blazor Extension Visual Studio Code | Syncfusion
4+
description: Learn here all about how to use code snippet utility of Syncfusion Blazor Extension for Visual Studio Code and much more.
55
platform: extension
66
control: Syncfusion Extensions
77
documentation: ug
88
---
99

10-
# Add Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component in the Blazor application
10+
# Add Syncfusion® Blazor component in the Blazor application
1111

12-
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor code snippet utility for Visual Studio Code includes snippets for inserting a Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component with various features into the Blazor Application's Razor code editor.
12+
The Syncfusion® Blazor code snippet utility for Visual Studio Code includes snippets for inserting a Syncfusion® Blazor component with various features into the Blazor Application's Razor code editor.
1313

14-
> The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor code snippet is available from Essential Studio<sup style="font-size:70%">&reg;</sup> 2021 Volume 1 (`v19.1.0.54`).
14+
N> The Syncfusion® Blazor code snippet is available from Essential Studio® 2021 Volume 1 (`v19.1.0.54`).
1515

16-
## Add a Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component
16+
## Add a Syncfusion® Blazor component
1717

18-
The instructions below guide you the process of using the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor code snippet in your Blazor application.
18+
The instructions below guide you the process of using the Syncfusion® Blazor code snippet in your Blazor application.
1919

2020
1. In Visual Studio Code, open an existing Blazor Application or create a new Blazor Application.
2121

22-
2. Open the razor file that you need and place the cursor in required place where you want to add Syncfusion<sup style="font-size:70%">&reg;</sup> component.
22+
2. Open the razor file that you need and place the cursor in required place where you want to add Syncfusion® component.
2323

24-
3. You can find the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component with the various features by typing the **sf** word in the format shown below.
25-
26-
```bash
27-
sf<Syncfusion<sup style="font-size:70%">&reg;</sup> component name>-<Syncfusion<sup style="font-size:70%">&reg;</sup> component feature>
24+
3. You can find the Syncfusion® Blazor component with the various features by typing the **sf** word in the format shown below.
2825

26+
```
27+
sf<Syncfusion component name>-<Syncfusion component feature>
2928
For Example, sfgrid-grouping
3029
```
31-
4. Choose the Syncfusion<sup style="font-size:70%">&reg;</sup> component and click the **Enter** or **Tab** key, the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component will be added in the razor file.
30+
4. Choose the Syncfusion® component and click the **Enter** or **Tab** key, the Syncfusion® Blazor component will be added in the razor file.
3231
3332
![Code Snippet](images/codesnippet.gif)
3433
35-
5. After adding the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component to the razor file, use the tab key to fill in the required values to render the component with data. You can find the comment section in the code snippet to see what values are required.
34+
5. After adding the Syncfusion® Blazor component to the razor file, use the tab key to fill in the required values to render the component with data. You can find the comment section in the code snippet to see what values are required.
3635
3736
![Comment](images/Comment.png)
3837
39-
6. You can also find the Syncfusion<sup style="font-size:70%">&reg;</sup> help link at the top of the added snippet to learn more about the new Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor component feature.
38+
6. You can also find the Syncfusion® help link at the top of the added snippet to learn more about the new Syncfusion® Blazor component feature.
4039
4140
![Help](images/Help.png)
4241
43-
## Configure Blazor application with Syncfusion<sup style="font-size:70%">&reg;</sup>
42+
## Configure Blazor application with Syncfusion
4443
45-
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor snippet simply inserts the code into the razor file. You must configure the Blazor application with Syncfusion<sup style="font-size:70%">&reg;</sup> by installing the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor NuGet package, namespace, themes, and registering the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service. To configure, follow the steps below:
44+
The Syncfusion® Blazor snippet simply inserts the code into the razor file. You must configure the Blazor application with Syncfusion® by installing the Syncfusion® Blazor NuGet package, namespace, themes, and registering the Syncfusion® Blazor Service. To configure, follow the steps below:
4645
47-
1. Open the Blazor application file and manually add the required Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor individual NuGet package(s) for the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components as a package reference. Refer to [this section](https://blazor.Syncfusion.com/documentation/nuget-packages/#benefits-of-using-individual-nuget-packages) to learn about the advantages of the individual NuGet packages. This NuGet package will be automatically restored when building the application.
46+
1. Open the Blazor application file and manually add the required Syncfusion® Blazor individual NuGet package(s) for the Syncfusion® Blazor components as a package reference. Refer to [this section](https://blazor.syncfusion.com/documentation/nuget-packages#benefits-of-using-individual-nuget-packages) to learn about the advantages of the individual NuGet packages. This NuGet package will be automatically restored when building the application.
4847
4948
![NuGet Package](images/NuGet-Snippet.png)
5049
51-
> Starting with Volume 4, 2020 (v18.4.0.30) release, Syncfusion<sup style="font-size:70%">&reg;</sup> provides [individual NuGet packages](https://blazor.Syncfusion.com/documentation/nuget-packages/) for our Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components. We highly recommend this new standard for your Blazor production applications.
50+
N> Starting with Volume 4, 2020 (v18.4.0.30) release, Syncfusion® provides [individual NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) for our Syncfusion® Blazor components. We highly recommend this new standard for your Blazor production applications.
5251
53-
2. To render the Syncfusion<sup style="font-size:70%">&reg;</sup> components in your application, open the **~/_Imports.razor** file and add the required Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor namespace entries.
52+
2. To render the Syncfusion® components in your application, open the **~/_Imports.razor** file and add the required Syncfusion® Blazor namespace entries.
5453
5554
![Namespace](images/Namespace-Snippet.png)
5655
57-
3. Add the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor [theme](https://blazor.Syncfusion.com/documentation/appearance/themes/) in the `<head>` element of the **~/Pages/_Host.html** page for server application and **~/wwwroot/index.html** page for a client application.
56+
3. Add the Syncfusion® Blazor [theme](https://blazor.syncfusion.com/documentation/appearance/themes) in the `<head>` element of the **~/Components/App.razor** page for Web App and `<head>` element of the **~/Pages/_Host.html** page for server application and **~/wwwroot/index.html** page for a client application.
5857
5958
![Themes](images/Themes-Snippet.png)
6059
61-
4. Open the **~/Startup.cs** file for server application and the **~/Program.cs** file for client application then register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service.
60+
4. Open the **~/Program.cs** file for Web App and server application and client application then register the Syncfusion® Blazor Service.
61+
62+
If you select an **Interactive render mode** as `WebAssembly` or `Auto`, you need to register the Syncfusion® Blazor service in both **~/Program.cs** files of your Blazor Web App.
6263
63-
![Syncfusion<sup style="font-size:70%">&reg;</sup> Configuration](images/Configuration-Snippet.png)
64+
![Syncfusion Configuration](images/Configuration-Snippet.png)
6465
65-
5. If you installed the trial setup or NuGet packages from nuget.org you must register the Syncfusion<sup style="font-size:70%">&reg;</sup> license key to your application since Syncfusion<sup style="font-size:70%">&reg;</sup> introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio<sup style="font-size:70%">&reg;</sup> release. Navigate to the [help topic](https://help.Syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-Syncfusion-license-key) to generate and register the Syncfusion<sup style="font-size:70%">&reg;</sup> license key to your application. Refer to this [blog](https://www.Syncfusion.com/blogs/post/whats-new-in-2018-volume-2.aspx) post for understanding the licensing changes introduced in Essential Studio<sup style="font-size:70%">&reg;</sup>.
66+
5. If you installed the trial setup or NuGet packages from nuget.org you must register the Syncfusion® license key to your application since Syncfusion® introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio® release. Navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-syncfusion-license-key) to generate and register the Syncfusion® license key to your application. Refer to this [UG](https://blazor.syncfusion.com/documentation/getting-started/license-key/overview) topic for understanding the licensing details in Essential Studio® for Blazor.
Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
layout: post
3-
title: Project Conversion | Blazor | Syncfusion
4-
description: Project Conversion is a add-in that converts Blazor application into a Syncfusion Blazor application by adding required Syncfusion components
3+
title: Convert Project - Blazor Extension for Visual Studio Code | Syncfusion
4+
description: Learn here all about how to convert blazor application into syncfusion blazor application using Blazor Extension for Visual Studio Code.
55
platform: extension
66
control: Syncfusion Extensions
77
documentation: ug
88
---
99

10-
# Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Conversion
10+
# Converting Blazor Extension for Visual Studio Code
1111

12-
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor conversion is an add-in for Visual Studio Code that converts an existing Blazor application into a Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Web Application by adding the required NuGet packages and themes.
12+
The Syncfusion® Blazor conversion is an add-in for Visual Studio Code that converts an existing Blazor application into a Syncfusion® Blazor Web Application by adding the required NuGet packages and themes.
1313

14-
> The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Web Application Project Conversion utility is available from `v17.4.0.39`.
14+
N> The Syncfusion® Blazor Web Application Project Conversion utility is available from `v17.4.0.39`.
1515

16-
The steps below assist you to using the Syncfusion<sup style="font-size:70%">&reg;</sup> Project conversion in your existing Blazor Web Application:
16+
The steps below assist you to using the Syncfusion® Project conversion in your existing Blazor Web Application:
1717

1818
1. Open an existing Blazor Web Application or create a new Microsoft Blazor Web Application in Visual Studio Code.
1919

20-
2. Select **Convert to Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Application...** from the context menu when you right-click on the **Project file** from Explorer (Workspace). Refer the screenshot below.
20+
2. Select **Convert to Syncfusion Blazor Application...** from the context menu when you right-click on the **Project file** from Explorer (Workspace). Refer the screenshot below.
2121

2222
![Conversion Add-in](images/Conversion.PNG)
2323

@@ -29,32 +29,33 @@ The steps below assist you to using the Syncfusion<sup style="font-size:70%">&re
2929

3030
![Select Themes](images/ChooseThemes.PNG)
3131

32-
5. The application configured with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor required NuGet packages and themes.
32+
5. The application configured with Syncfusion® Blazor required NuGet packages and themes.
3333

34-
6. If you installed the trial setup or NuGet packages from nuget.org you must register the Syncfusion<sup style="font-size:70%">&reg;</sup> license key to your application since Syncfusion<sup style="font-size:70%">&reg;</sup> introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio<sup style="font-size:70%">&reg;</sup> release. Navigate to the [help topic](https://help.Syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-Syncfusion-license-key) to generate and register the Syncfusion<sup style="font-size:70%">&reg;</sup> license key to your application. Refer to this [blog](https://www.Syncfusion.com/blogs/post/whats-new-in-2018-volume-2.aspx) post for understanding the licensing changes introduced in Essential Studio<sup style="font-size:70%">&reg;</sup>.
34+
6. If you installed the trial setup or NuGet packages from nuget.org you must register the Syncfusion® license key to your application since Syncfusion® introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio® release. Navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-syncfusion-license-key) to generate and register the Syncfusion® license key to your application. Refer to this [UG](https://blazor.syncfusion.com/documentation/getting-started/license-key/overview) topic for understanding the licensing details in Essential Studio® for Blazor.
3535

3636
## NuGet Packages
3737

3838
Based on the application type, the following NuGet packages are added as NuGet references.
3939

40-
| Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor NuGet packages | Application type |
40+
| Syncfusion Blazor NuGet packages | Application type |
4141
|---|---|
42-
| `Syncfusion.Blazor` | Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Server App <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App (ASPNET Core hosted) <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App (Progressive Web Application)|
43-
| `Syncfusion.Blazor.PdfViewerServer.Windows` | Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Server App |
44-
| `Syncfusion.Blazor.WordProcessor` | Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Server App <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App (ASPNET Core hosted) <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App (Progressive Web Application)|
42+
| `Syncfusion.Blazor` | Syncfusion Blazor Web App <br/> Syncfusion Blazor Server App <br/> Syncfusion Blazor WebAssembly App <br/> Syncfusion Blazor WebAssembly App (ASPNET Core hosted) <br/> Syncfusion Blazor WebAssembly App (Progressive Web Application)|
43+
| `Syncfusion.Blazor.PdfViewerServer.Windows` | Syncfusion Blazor Server App |
44+
| `Syncfusion.Blazor.WordProcessor` | Syncfusion Blazor Server App <br/> Syncfusion Blazor WebAssembly App <br/> Syncfusion Blazor WebAssembly App (ASPNET Core hosted) <br/> Syncfusion Blazor WebAssembly App (Progressive Web Application)|
4545

4646
The NuGet packages added to the application file as follows.
4747

4848
![NuGetPackage](images/NuGetPackage.png)
4949

5050
## Theme links
5151

52-
While converting the application, the selected Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor theme is added in the following location of a Blazor type application.
52+
While converting the application, the selected Syncfusion® Blazor theme is added in the following location of a Blazor type application.
5353

5454
| Application type | File location |
5555
|---|---|
56-
| Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Server App | {Project location}\Pages\\_Host.cshtml |
57-
| Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App (ASPNET Core hosted) <br/> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App (Progressive Web Application)| {Client Project location}\wwwroot\index.html |
58-
| Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor WebAssembly App | {Project location}\wwwroot\index.html|
56+
| Syncfusion Blazor Web App | ~/Components/App.razor |
57+
| Syncfusion Blazor Server App | {Project location}/Pages//_Host.cshtml |
58+
| Syncfusion Blazor WebAssembly App (ASPNET Core hosted) <br/> Syncfusion Blazor WebAssembly App (Progressive Web Application)| {Client Project location}/wwwroot/index.html |
59+
| Syncfusion Blazor WebAssembly App | {Project location}/wwwroot/index.html|
5960

6061
![CDNLink](images/CDNLink.png)

0 commit comments

Comments
 (0)