Skip to content

Commit d91ffe1

Browse files
chore(common): fix namespaces in snippets
1 parent fe567e5 commit d91ffe1

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

components/button/overview.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,10 @@ To add a Telerik Button to your Blazor app, use the `<TelerikButton>` tag:
3535
````CSHTML
3636
@using Telerik.Blazor.Components.Button
3737
38-
<TelerikButton ref="@theButton" OnClick="@MyClick">Hello!</TelerikButton>
38+
<TelerikButton ref="@theButton">Hello!</TelerikButton>
3939
4040
@functions{
4141
Telerik.Blazor.Components.Button.TelerikButton theButton;
42-
43-
void MyClick()
44-
{
45-
Console.WriteLine(theButton);
46-
}
4742
}
4843
````
4944

components/calendar/navigation.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ You can control how far the user can go by setting the `Min` and `Max` propertie
2222
2323
````CSHTML
2424
@using Telerik.Blazor.Components.Calendar
25+
@using Telerik.Blazor
2526
2627
The user starts in April 2019 and can navigate between January 2019 and July 2019.
2728
<br />
2829
29-
<TelerikCalendar Date="@startDate" View="CalendarView.Month" Min="@minDate" Max="@maxDate"></TelerikCalendar>
30+
<TelerikCalendar Date="@startDate" View="@CalendarView.Month" Min="@minDate" Max="@maxDate"></TelerikCalendar>
3031
@functions {
3132
DateTime startDate = new DateTime(2019, 4, 1);
3233
DateTime minDate = new DateTime(2019, 1, 1);
@@ -57,11 +58,12 @@ You can control how much detail the user can go into by setting the `BottomView`
5758
5859
````CSHTML
5960
@using Telerik.Blazor.Components.Calendar
61+
@using Telerik.Blazor
6062
6163
The user starts in the Decade view and can only go down to years.
6264
<br />
6365
64-
<TelerikCalendar BottomView="@CalendarView.Year" View="CalendarView.Decade"
66+
<TelerikCalendar BottomView="@CalendarView.Year" View="@CalendarView.Decade"
6567
Min="@min" Max="@max" ValueChanged="@MyValueChangeHandler">
6668
</TelerikCalendar>
6769

components/calendar/selection.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ To prevent the user from selecting certain dates (for example, holidays), add th
3939
4040
````CSHTML
4141
@using Telerik.Blazor.Components.Calendar
42+
@using Telerik.Blazor
4243
4344
The user will not be able to select the first and second of April 2019.
4445

components/window/actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ You can create a custom action icon and you must provide its `OnClick` handler.
6363
6464
<TelerikWindow Visible="true">
6565
<TelerikWindowActions>
66-
<TelerikWindowAction Name="MyAction" Icon="gear" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
66+
<TelerikWindowAction Name="MyAction" Icon="@Telerik.Blazor.IconName.Gear" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
6767
</TelerikWindowActions>
6868
<TelerikWindowContent>
6969
@result
@@ -97,7 +97,7 @@ You can mix custom actions with built-in actions, and you do not have to define
9797
<TelerikWindow Visible="true">
9898
<TelerikWindowActions>
9999
<TelerikWindowAction Name="Minimize"></TelerikWindowAction>
100-
<TelerikWindowAction Name="MyAction" Icon="info" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
100+
<TelerikWindowAction Name="MyAction" Icon="@Telerik.Blazor.IconName.Information" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
101101
<TelerikWindowAction Name="Maximize"></TelerikWindowAction>
102102
</TelerikWindowActions>
103103
<TelerikWindowContent>

0 commit comments

Comments
 (0)