Skip to content

Commit 89ccf72

Browse files
Fix code block formatting in templates.md
Corrected code block syntax for Gantt Chart templates.
1 parent 09dc5bc commit 89ccf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blazor/gantt-chart/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Most templates used in the Gantt Chart are of type `RenderFragment<T>` and are p
2222

2323
For example, the data in a column template can be accessed using `context` as shown below:
2424

25-
```razor
25+
```cs
2626
<GanttColumn Field="TaskName" HeaderText="Task">
2727
<Template Context="context">
2828
@context.TaskName
@@ -34,4 +34,4 @@ For example, the data in a column template can be accessed using `context` as sh
3434

3535
In Blazor, when a component includes a `RenderFragment` property, it restricts the use of other child components outside that fragment. This is a framework-defined behavior [by design in Blazor](https://github.com/dotnet/aspnetcore/issues/10836), which prevents placing additional child components directly within the parent component.
3636
37-
Due to this limitation, templates such as `TaskbarTemplate` and `MilestoneTemplate` cannot be declared directly under the Gantt Chart component. Instead, they must be wrapped inside a `GanttTemplates` component to ensure proper structure and rendering.
37+
Due to this limitation, templates such as `TaskbarTemplate` and `MilestoneTemplate` cannot be declared directly under the Gantt Chart component. Instead, they must be wrapped inside a `GanttTemplates` component to ensure proper structure and rendering.

0 commit comments

Comments
 (0)