зеркало из https://github.com/telerik/blazor-docs.git
chore(common): fix namespaces in snippets
This commit is contained in:
Родитель
fe567e5eca
Коммит
d91ffe1587
|
@ -35,15 +35,10 @@ To add a Telerik Button to your Blazor app, use the `<TelerikButton>` tag:
|
|||
````CSHTML
|
||||
@using Telerik.Blazor.Components.Button
|
||||
|
||||
<TelerikButton ref="@theButton" OnClick="@MyClick">Hello!</TelerikButton>
|
||||
<TelerikButton ref="@theButton">Hello!</TelerikButton>
|
||||
|
||||
@functions{
|
||||
Telerik.Blazor.Components.Button.TelerikButton theButton;
|
||||
|
||||
void MyClick()
|
||||
{
|
||||
Console.WriteLine(theButton);
|
||||
}
|
||||
}
|
||||
````
|
||||
|
||||
|
|
|
@ -22,11 +22,12 @@ You can control how far the user can go by setting the `Min` and `Max` propertie
|
|||
|
||||
````CSHTML
|
||||
@using Telerik.Blazor.Components.Calendar
|
||||
@using Telerik.Blazor
|
||||
|
||||
The user starts in April 2019 and can navigate between January 2019 and July 2019.
|
||||
<br />
|
||||
|
||||
<TelerikCalendar Date="@startDate" View="CalendarView.Month" Min="@minDate" Max="@maxDate"></TelerikCalendar>
|
||||
<TelerikCalendar Date="@startDate" View="@CalendarView.Month" Min="@minDate" Max="@maxDate"></TelerikCalendar>
|
||||
@functions {
|
||||
DateTime startDate = new DateTime(2019, 4, 1);
|
||||
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`
|
|||
|
||||
````CSHTML
|
||||
@using Telerik.Blazor.Components.Calendar
|
||||
@using Telerik.Blazor
|
||||
|
||||
The user starts in the Decade view and can only go down to years.
|
||||
<br />
|
||||
|
||||
<TelerikCalendar BottomView="@CalendarView.Year" View="CalendarView.Decade"
|
||||
<TelerikCalendar BottomView="@CalendarView.Year" View="@CalendarView.Decade"
|
||||
Min="@min" Max="@max" ValueChanged="@MyValueChangeHandler">
|
||||
</TelerikCalendar>
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ To prevent the user from selecting certain dates (for example, holidays), add th
|
|||
|
||||
````CSHTML
|
||||
@using Telerik.Blazor.Components.Calendar
|
||||
@using Telerik.Blazor
|
||||
|
||||
The user will not be able to select the first and second of April 2019.
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ You can create a custom action icon and you must provide its `OnClick` handler.
|
|||
|
||||
<TelerikWindow Visible="true">
|
||||
<TelerikWindowActions>
|
||||
<TelerikWindowAction Name="MyAction" Icon="gear" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
|
||||
<TelerikWindowAction Name="MyAction" Icon="@Telerik.Blazor.IconName.Gear" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
|
||||
</TelerikWindowActions>
|
||||
<TelerikWindowContent>
|
||||
@result
|
||||
|
@ -97,7 +97,7 @@ You can mix custom actions with built-in actions, and you do not have to define
|
|||
<TelerikWindow Visible="true">
|
||||
<TelerikWindowActions>
|
||||
<TelerikWindowAction Name="Minimize"></TelerikWindowAction>
|
||||
<TelerikWindowAction Name="MyAction" Icon="info" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
|
||||
<TelerikWindowAction Name="MyAction" Icon="@Telerik.Blazor.IconName.Information" OnClick="@MyCustomActionHandler"></TelerikWindowAction>
|
||||
<TelerikWindowAction Name="Maximize"></TelerikWindowAction>
|
||||
</TelerikWindowActions>
|
||||
<TelerikWindowContent>
|
||||
|
|
Загрузка…
Ссылка в новой задаче