Skip to content

Commit fb7d6d5

Browse files
ntachevanikolay-nenkov
authored andcommitted
chore(Gantt): fix snippets and skip repl
1 parent 7e6c337 commit fb7d6d5

File tree

11 files changed

+17
-12
lines changed

11 files changed

+17
-12
lines changed

components/contextmenu/refresh-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ In this article:
9696
},
9797
new MenuModel()
9898
{
99-
Text = "Wrench Icon,
99+
Text = "Wrench Icon",
100100
Icon = SvgIcon.Wrench,
101101
},
102102
new MenuModel()

components/dialog/header.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The following example demonstrates how to set up the title through a template. T
3333
3434
<TelerikDialog @bind-Visible="@Visible" ShowCloseButton="false">
3535
<DialogTitle>
36-
<TelerikSvgIcon IconClass="k-icon k-i-caret-double-alt-up"></TelerikSvgIcon>
36+
<TelerikSvgIcon Icon="@SvgIcon.CaretDoubleAltUp"></TelerikSvgIcon>
3737
<strong>@Title</strong>
38-
<TelerikSvgIcon IconClass="k-icon k-i-caret-double-alt-up"></TelerikSvgIcon>
38+
<TelerikSvgIcon Icon="@SvgIcon.CaretDoubleAltUp"></TelerikSvgIcon>
3939
</DialogTitle>
4040
<DialogContent>
4141
A new version of <strong>Telerik UI for Blazor</strong> is available. Would you like to download and install it now?

components/filemanager/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ The available FileManager methods are:
367367

368368
* `Rebind` - refreshes the FileManager data.
369369

370+
<div class="skip-repl"></div>
370371
````CSHTML
371372
<TelerikFileManager Data="@Data"
372373
@ref="@FileManagerRef" />

components/form/validation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ You can use the <a href="https://learn.microsoft.com/en-us/aspnet/core/blazor/fo
158158

159159
When using a model with nested objects and fields, specify their `Field` settings as a dot-separate string, do *not* use the `nameof` operator, it does not return the full name of the model.
160160

161+
<div class="skip-repl"></div>
161162
````CSHTML
162163
@using System.Dynamic
163164
@using System.ComponentModel.DataAnnotations
@@ -231,10 +232,10 @@ You can use third-party validation libraries that integrate with the standard `E
231232

232233
>note Such third party tools are not included with the Telerik UI for Blazor package. Your project must reference their NuGet packages explicitly. The code snippet below will not run unless you install the an appropriate package first. You can find some in <a href="https://docs.fluentvalidation.net/en/latest/blazor.html" target="_blank">their official documentation</a>.
233234
234-
<div class="skip-repl"></div>
235235

236236
>caption Using FluentValidation
237237
238+
<div class="skip-repl"></div>
238239
````CSHTML
239240
@using Microsoft.AspNetCore.Components.Forms
240241
@using FluentValidation

components/gantt/gantt-tree/columns/command.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ The command column provides access to the data item via `context`. This may be u
6969

7070
Use a **named** context variable to avoid errors when nesting components or `RenderFragment`s in general. In such cases, the exception will be similar to ["Child content element ... uses the same parameter name ('context') as enclosing child content element ..."]({%slug nest-renderfragment%}).
7171

72+
<div class="skip-repl"></div>
7273
````CSHTML
7374
<GanttCommandColumn Context="currTask">
7475
@{

components/gantt/gantt-tree/columns/menu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To disable the Column Menu for a specific column in the Gantt, set the `ShowColu
5252
<GanttColumns>
5353
<GanttColumn Field="@nameof(FlatModel.Title)" ShowColumnMenu="false">
5454
</GanttColumn>
55-
<GanttColumn Field="@nameof(FlatModel.PercentComplete)"
55+
<GanttColumn Field="@nameof(FlatModel.PercentComplete)">
5656
</GanttColumn>
5757
<GanttColumn Field="@nameof(FlatModel.Start)">
5858
</GanttColumn>

components/gantt/gantt-tree/editing/popup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ The `GanttDependencyDescriptor` exposes four fields that describe the mutated de
226226
Id = LastDependencyId++,
227227
PredecessorId = (int)args.PredecessorId,
228228
SuccessorId = (int)args.SuccessorId,
229-
Type = args.Type
229+
Type = (int)args.Type
230230
};
231231
232232
Dependencies.Add(dependency);
@@ -306,7 +306,7 @@ The `GanttDependencyDescriptor` exposes four fields that describe the mutated de
306306
Id = LastDependencyId++,
307307
PredecessorId = (int)x.PredecessorId,
308308
SuccessorId = (int)x.SuccessorId,
309-
Type = x.Type
309+
Type = (int)x.Type
310310
};
311311
312312
Dependencies.Add(dependency);
@@ -319,7 +319,7 @@ The `GanttDependencyDescriptor` exposes four fields that describe the mutated de
319319
320320
dependency.SuccessorId = (int)x.SuccessorId;
321321
dependency.PredecessorId = (int)x.PredecessorId;
322-
dependency.Type = x.Type;
322+
dependency.Type = (int)x.Type;
323323
324324
});
325325
@@ -331,7 +331,7 @@ The `GanttDependencyDescriptor` exposes four fields that describe the mutated de
331331
Dependencies.Remove(dependency);
332332
});
333333
334-
DependencyModel GetDependencyDataItemByDescriptor(DependencyDescriptor descriptor)
334+
DependencyModel GetDependencyDataItemByDescriptor(GanttDependencyDescriptor descriptor)
335335
{
336336
return Dependencies.FirstOrDefault(dep => dep.Id == (descriptor.DataItem as DependencyModel).Id);
337337
}

components/gantt/gantt-tree/filter/filter-menu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ A key difference in the behavior from the [filter row]({%slug gantt-filter-row%}
3030
````CSHTML
3131
@* Filter menu in the column header *@
3232
33-
<<TelerikGantt Data="@Data"
34-
Width="100%"
33+
<TelerikGantt Data="@Data"
34+
Width="900px"
3535
Height="600px"
3636
IdField="Id"
3737
FilterMode="@GanttFilterMode.FilterMenu"

components/gantt/gantt-tree/templates/popup-form-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ You can use the `Context` attribute of the `<FormTemplate>` tag to set the name
196196
Id = LastDependencyId++,
197197
PredecessorId = (int)args.PredecessorId,
198198
SuccessorId = (int)args.SuccessorId,
199-
Type = args.Type
199+
Type = (int)args.Type
200200
};
201201
202202
Dependencies.Add(dependency);

components/gantt/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ The table below lists the Gantt methods. Also consult the [Gantt API](/blazor-ui
221221
| --- | --- |
222222
| `Rebind` | [Refreshes the component data]({%slug gantt-refresh-data%}#rebind-method). |
223223

224+
<div class="skip-repl"></div>
224225
````CSHTML
225226
<TelerikGantt @ref="@GanttRef" .../>
226227

0 commit comments

Comments
 (0)