Skip to content

Commit d97ecb2

Browse files
committed
Updated Blazor components Getting Started UG documentation for Blazor Web App
1 parent 84a4ee0 commit d97ecb2

21 files changed

+672
-419
lines changed

blazor/datagrid/how-to/create-custom-grid-component.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ Create a reusable custom Grid component by wrapping the `SfGrid` in a Razor comp
1313

1414
The following example creates a `CustomGrid` wrapper that renders `SfGrid` with default properties such as `GridPageSettings`. Any unmatched attributes passed to `CustomGrid` are forwarded to the inner `SfGrid`, and content placed inside `CustomGrid` is projected as columns via `ChildContent`.
1515

16-
CustomGrid.razor
16+
**CustomGrid.razor:**
17+
18+
{% tabs %}
19+
{% highlight C# tabtitle="CustomGrid.razor" %}
1720

18-
```cshtml
1921
@using Syncfusion.Blazor.Grids
2022
@typeparam TItem
2123

@@ -30,11 +32,15 @@ CustomGrid.razor
3032
</GridPageSettings>
3133
@ChildContent
3234
</SfGrid>
33-
```
3435

35-
CustomGrid.razor.cs
36+
{% endhighlight %}
37+
{% endtabs %}
38+
39+
**CustomGrid.razor.cs:**
40+
41+
{% tabs %}
42+
{% highlight C# tabtitle="CustomGrid.razor.cs" %}
3643

37-
```csharp
3844
using Microsoft.AspNetCore.Components;
3945
using Syncfusion.Blazor.Grids;
4046
using System;
@@ -60,11 +66,15 @@ namespace SF_Grid_Inheritance.Shared
6066
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
6167
}
6268
}
63-
```
6469

65-
Index.razor
70+
{% endhighlight %}
71+
{% endtabs %}
72+
73+
**Index.razor:**
74+
75+
{% tabs %}
76+
{% highlight C# tabtitle="Index.razor" %}
6677

67-
```razor
6878
@using SF_Grid_Inheritance.Shared
6979
@using Syncfusion.Blazor.Grids
7080

@@ -100,4 +110,6 @@ Index.razor
100110
public double? Freight { get; set; }
101111
}
102112
}
103-
```
113+
114+
{% endhighlight %}
115+
{% endtabs %}

blazor/datagrid/how-to/css-isolation-for-grid.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ To enable CSS isolation for the Grid, it is recommended to wrap the `SfGrid` ins
1515

1616
Below is an example of implementing a simple Grid inside the **Index.razor** file:
1717

18-
```razor
19-
Index.razor
18+
{% tabs %}
19+
{% highlight C# tabtitle="Index.razor" %}
2020

2121
@using Syncfusion.Blazor.Grids
2222

@@ -57,7 +57,9 @@ Index.razor
5757
public string ShipCountry { get; set; }
5858
}
5959
}
60-
```
60+
61+
{% endhighlight %}
62+
{% endtabs %}
6163

6264
```css
6365
Index.razor.css

blazor/dropdown-list/getting-started-with-web-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ After initialization, populate the DropDownList with data using the [DataSource]
296296

297297
## Configure the popup list
298298

299-
By default, the width of the popup list automatically adjusts according to the DropDownList input element's width, and the height of the popup list has `350px`. The height and width of the popup list can also be customized using the [PopupHeight](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownList-2.html#Syncfusion_Blazor_DropDowns_SfDropDownList_2_PopupHeight) and [PopupWidth](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownList-2.html#Syncfusion_Blazor_DropDowns_SfDropDownList_2_PopupWidth) properties respectively.
299+
By default, the popup list width adjusts to the DropDownList input width, and the popup list height is `350px`. Customize the height and width using the [PopupHeight](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownList-2.html#Syncfusion_Blazor_DropDowns_SfDropDownList_2_PopupHeight) and [PopupWidth](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfDropDownList-2.html#Syncfusion_Blazor_DropDowns_SfDropDownList_2_PopupWidth) properties.
300300

301301
{% tabs %}
302302
{% highlight razor %}

blazor/rich-text-editor/http-client-instance.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ The Rich Text Editor component in Blazor enables you to utilize the `HttpClientI
1313

1414
The following example illustrates how to configure the Rich Text Editor component with HttpClient in a Blazor application.
1515

16-
```razor
16+
{% tabs %}
17+
{% highlight razor %}
18+
1719
@using Syncfusion.Blazor.RichTextEditor
1820
@inject HttpClient httpClient
1921

@@ -34,11 +36,15 @@ The following example illustrates how to configure the Rich Text Editor componen
3436
await base.OnInitializedAsync();
3537
}
3638
}
37-
```
39+
40+
{% endhighlight %}
41+
{% endtabs %}
3842

3943
## Program.cs
4044

41-
```csharp
45+
{% tabs %}
46+
{% highlight c# tabtitle="Program.cs" %}
47+
4248
using Syncfusion.Blazor;
4349

4450
var builder = WebApplication.CreateBuilder(args);
@@ -60,4 +66,5 @@ builder.Services.AddScoped(sp =>
6066
});
6167
var app = builder.Build();
6268

63-
```
69+
{% endhighlight %}
70+
{% endtabs %}

blazor/speeddial/getting-started-webapp.md

Lines changed: 77 additions & 48 deletions
Large diffs are not rendered by default.
79.4 KB
Loading

blazor/spinner/getting-started-webapp.md

Lines changed: 77 additions & 48 deletions
Large diffs are not rendered by default.
79.4 KB
Loading

blazor/split-button/getting-started-webapp.md

Lines changed: 77 additions & 48 deletions
Large diffs are not rendered by default.
79.4 KB
Loading

0 commit comments

Comments
 (0)