Skip to content

Commit 718346a

Browse files
committed
Updated Blazor components Getting Started UG documentation for Blazor Web App
1 parent 732c63d commit 718346a

19 files changed

+570
-375
lines changed

blazor/file-manager/getting-started-with-web-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Run the following command to create a new Blazor Web App in a command prompt (Wi
116116

117117
Configure the appropriate interactive render mode and interactivity location when setting up a Blazor Web Application. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode).
118118

119-
For example, in a Blazor Web App with `Auto` interactive render mode, use the following commands:
119+
For example, to create a Blazor Web App with the `Auto` interactive render mode, use the following commands:
120120

121121
{% tabs %}
122122
{% highlight c# tabtitle=".NET CLI" %}

blazor/file-upload/getting-started-with-web-app.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
259259

260260
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor File Upload component in the default web browser.
261261

262-
{% previewsample "https://blazorplayground.syncfusion.com/embed/LXBJXsrOqbMEOurR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
263-
264-
![Blazor File Upload Basic Component](images/blazor-fileupload-basic.gif)
262+
{% previewsample "https://blazorplayground.syncfusion.com/embed/LXBJXsrOqbMEOurR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor File Upload Basic Component](images/blazor-fileupload-basic.gif)" %}
265263

266264
## Use ValueChange Event
267265

@@ -320,9 +318,7 @@ This example demonstrates how to use the [`ValueChange`](https://help.syncfusion
320318

321319
N> When saving files directly in a Blazor Server application using [`ValueChange`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.UploaderEvents.html#Syncfusion_Blazor_Inputs_UploaderEvents_ValueChange) and [`AutoUpload`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfUploader.html#Syncfusion_Blazor_Inputs_SfUploader_AutoUpload), the files are saved on the server where the Blazor Server app is running, not on the client's machine. You need appropriate file system permissions for the server process to write to the specified directory. Also, ensure the target directory (`wwwroot/uploads` in this example) exists or is created programmatically. In a production environment, consider secure storage solutions for uploaded files.
322320

323-
{% previewsample "https://blazorplayground.syncfusion.com/embed/hDVyZkrqBvaSlvht?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
324-
325-
![Blazor File Upload ValueChange Event](images/blazor-fileupload-valuechange.gif)
321+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hDVyZkrqBvaSlvht?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor File Upload ValueChange Event](images/blazor-fileupload-valuechange.gif)" %}
326322

327323

328324
## Memory stream
@@ -392,9 +388,7 @@ This example demonstrates how to read the content of an uploaded file into a [Me
392388

393389
N> When using `MemoryStream` for large files, be mindful of server memory consumption. If you expect very large files, consider processing them in chunks or saving them to temporary storage before processing to avoid out-of-memory exceptions. The `long.MaxValue` in `OpenReadStream` indicates the maximum buffer size. In a Blazor Server app, `Stream` operations occur on the server.
394390

395-
{% previewsample "https://blazorplayground.syncfusion.com/embed/BjreNaLUhdwxzvHS?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
396-
397-
![Blazor File Upload Memory Stream Example](images/blazor-fileupload-memorystream.gif)
391+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BjreNaLUhdwxzvHS?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor File Upload Memory Stream Example](images/blazor-fileupload-memorystream.gif)" %}
398392

399393

400394
## Created Event
@@ -433,9 +427,7 @@ This example shows how to use the [`Created`](https://help.syncfusion.com/cr/bla
433427

434428
N> The [`Created`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.UploaderEvents.html#Syncfusion_Blazor_Inputs_UploaderEvents_Created) event is useful for client-side JavaScript interop if you need to manipulate the DOM elements of the uploader component immediately after it's ready. However, for most Blazor-specific customizations (like custom templates), you should use the built-in Blazor features.
435429

436-
{% previewsample "https://blazorplayground.syncfusion.com/embed/VtLyNuVUBGtPZrdo?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
437-
438-
![Blazor File Upload Created Example](images/blazor-fileupload-created.gif)
430+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VtLyNuVUBGtPZrdo?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor File Upload Created Example](images/blazor-fileupload-created.gif)" %}
439431

440432

441433
## File Selected Event
@@ -488,9 +480,7 @@ This example demonstrates how to use the [FileSelected Event](https://help.syncf
488480

489481
N> Setting `args.Cancel = true` in the `FileSelected` event will prevent the file (or files if `args.Files` contains multiple) from being added to the uploader's internal file list. This is a client-side validation and should be complemented with server-side validation for robust security and data integrity.
490482

491-
{% previewsample "https://blazorplayground.syncfusion.com/embed/BDLIZuBUVwEJoJpz?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
492-
493-
![Blazor File Upload File Selected Example](images/blazor-fileupload-fileselected.gif)
483+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BDLIZuBUVwEJoJpz?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor File Upload File Selected Example](images/blazor-fileupload-fileselected.gif)" %}
494484

495485

496486
## OnFileListRender

blazor/floating-action-button/getting-started-with-web-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ You can create a **Blazor Web App** using Visual Studio Code via [Microsoft Temp
6060

6161
Configure the appropriate interactive render mode and interactivity location when setting up a Blazor Web App. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode).
6262

63-
For example, in a Blazor Web App with the `Auto` interactive render mode, use the following commands.
63+
For example, to create a Blazor Web App with the `Auto` interactive render mode, use the following commands:
6464

6565
{% tabs %}
6666
{% highlight c# tabtitle="Blazor Web App" %}
@@ -256,7 +256,7 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
256256

257257
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Floating Action Button component in the default web browser.
258258

259-
{% previewsample "https://blazorplayground.syncfusion.com/embed/hZLTtsVaAldOGCVR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "![Blazor Floating Action Button Component](./images/blazor-fab-component.png)" %}
259+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hZLTtsVaAldOGCVR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor Floating Action Button Component](./images/blazor-fab-component.png)" %}
260260

261261
N> [View Sample in GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/FloatingActionButton).
262262

blazor/pager/getting-started-webapp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Run the following command to create a new Blazor Web App in a command prompt (Wi
116116

117117
Configure the appropriate interactive render mode and interactivity location when setting up a Blazor Web Application. For detailed information, refer to the [interactive render mode documentation](https://blazor.syncfusion.com/documentation/common/interactive-render-mode).
118118

119-
For example, in a Blazor Web App with `Auto` interactive render mode, use the following commands:
119+
For example, to create a Blazor Web App with the `Auto` interactive render mode, use the following commands:
120120

121121
{% tabs %}
122122
{% highlight c# tabtitle=".NET CLI" %}

0 commit comments

Comments
 (0)