Skip to content

Commit e513e47

Browse files
docs(common): fix @ref for preview 8
1 parent 48643b7 commit e513e47

File tree

17 files changed

+28
-32
lines changed

17 files changed

+28
-32
lines changed

components/animationcontainer/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
2121
@using Telerik.Blazor.Components.Button
2222
@using Telerik.Blazor
2323
24-
<TelerikAnimationContainer @ref="myPopupRef" Top="300px" Width="100px" Height="100px" AnimationType="AnimationType.ZoomOut" Class="k-popup">
24+
<TelerikAnimationContainer @ref:suppressField @ref="myPopupRef" Top="300px" Width="100px" Height="100px" AnimationType="AnimationType.ZoomOut" Class="k-popup">
2525
My content goes here. The "k-popup" class adds some background and borders which you can define through your own styles instead.
2626
</TelerikAnimationContainer>
2727
@@ -65,7 +65,7 @@ The animation container exposes the following properties and methods:
6565
@using Telerik.Blazor.Components.Button
6666
@using Telerik.Blazor
6767
68-
<TelerikAnimationContainer @ref="myPopup" Top="300px" Width="200px" Height="200px" AnimationType="@AnimType" Class="my-popup">
68+
<TelerikAnimationContainer @ref:suppressField @ref="myPopup" Top="300px" Width="200px" Height="200px" AnimationType="@AnimType" Class="my-popup">
6969
My content goes here.<br />
7070
<TelerikButton OnClick="@HideContainer">Hide Animation Container</TelerikButton>
7171
</TelerikAnimationContainer>

components/button/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ 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">Hello!</TelerikButton>
38+
<TelerikButton @ref:suppressField @ref="theButton">Hello!</TelerikButton>
3939
4040
@code{
4141
Telerik.Blazor.Components.Button.TelerikButton theButton;
@@ -181,4 +181,3 @@ You can control the `type` attribute through the `ButtonType` property of the co
181181

182182
* [Live Demo: Button](https://demos.telerik.com/blazor-ui/button/index)
183183

184-

components/calendar/navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ You can make the Calendar component move to a certain date and view through its
9797
@using Telerik.Blazor.Components.Button
9898
9999
<TelerikButton OnClick="@NavigateCalendarProgrammatically">Go to new date and view</TelerikButton>
100-
<TelerikCalendar Date="@startDate" Max="@maxDate" Min="@minDate" View="@Telerik.Blazor.CalendarView.Decade" @ref="theCalendar"></TelerikCalendar>
100+
<TelerikCalendar Date="@startDate" Max="@maxDate" Min="@minDate" View="@Telerik.Blazor.CalendarView.Decade" @ref:suppressField @ref="theCalendar"></TelerikCalendar>
101101
102102
@code{
103103
DateTime startDate = new DateTime(2345, 11, 22);

components/calendar/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The selected date is: @selectedDate
5050
````CSHTML
5151
@using Telerik.Blazor.Components.Calendar
5252
53-
<TelerikCalendar @ref="myCalendarReference">
53+
<TelerikCalendar @ref:suppressField @ref="myCalendarReference">
5454
</TelerikCalendar>
5555
5656
@code {

components/chart/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To use a Telerik chart for Blazor, add the `TelerikChart` tag.
7878
````CSHTML
7979
@using Telerik.Blazor.Components.Chart
8080
81-
<TelerikChart @ref="myChartRef">
81+
<TelerikChart @ref:suppressField @ref="myChartRef">
8282
</TelerikChart>
8383
8484
@code {
@@ -103,7 +103,7 @@ You can also set the chart size in percentage values so it occupies its containe
103103
104104
<div style="border: 1px solid red;width:@ContainerWidth; height: @ContainerHeight">
105105
106-
<TelerikChart Width="100%" Height="100%" @ref="theChart">
106+
<TelerikChart Width="100%" Height="100%" @ref:suppressField @ref="theChart">
107107
108108
<TelerikChartSeriesItems>
109109
<TelerikChartSeries Type="ChartSeriesType.Column" Name="Product 1" Data="@someData">

components/dateinput/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To use a Telerik Date Input for Blazor, add the `TelerikDateInput` tag.
1919
````CSHTML
2020
@using Telerik.Blazor.Components.DateInput
2121
22-
<TelerikDateInput @bind-Value="@dateInputValue" Format="dd/MMMM/yyyy" @ref="theDateInput">
22+
<TelerikDateInput @bind-Value="@dateInputValue" Format="dd/MMMM/yyyy" @ref:suppressField @ref="theDateInput">
2323
</TelerikDateInput>
2424
@dateInputValue
2525
@@ -77,4 +77,3 @@ The date input provides the following features:
7777
* [Live Demo: Date Input](https://demos.telerik.com/blazor-ui/dateinput/index)
7878
* [Input Validation]({%slug common-features/input-validation%})
7979
* [Supported Date Formats]({%slug components/dateinput/supported-formats%})
80-

components/datepicker/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To use a Telerik Date Picker for Blazor, add the `TelerikDatePicker` tag.
1919
````CSHTML
2020
@using Telerik.Blazor.Components.DatePicker
2121
22-
<TelerikDatePicker @bind-Value="datePickerValue" @ref="theDatePicker"></TelerikDatePicker>
22+
<TelerikDatePicker @bind-Value="datePickerValue" @ref:suppressField @ref="theDatePicker"></TelerikDatePicker>
2323
2424
<br />The selected date is: @datePickerValue.ToShortDateString()
2525

components/dropdownlist/data-bind.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The DropDownList is a generic component and its type comes from the model it is
8787
````Primitive
8888
@using Telerik.Blazor.Components.DropDownList
8989
90-
<TelerikDropDownList @ref="myDdlRef" Data="@MyList" Value="third">
90+
<TelerikDropDownList @ref:suppressField @ref="myDdlRef" Data="@MyList" Value="third">
9191
</TelerikDropDownList>
9292
9393
@code {
@@ -100,7 +100,7 @@ The DropDownList is a generic component and its type comes from the model it is
100100
````Model
101101
@using Telerik.Blazor.Components.DropDownList
102102
103-
<TelerikDropDownList @ref="myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="3">
103+
<TelerikDropDownList @ref:suppressField @ref="myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="3">
104104
</TelerikDropDownList>
105105
@code {
106106
//the type of the generic component is determined by the type of the model you pass to it, and the type of its value field
@@ -146,4 +146,3 @@ The DropDownList is a generic component and its type comes from the model it is
146146

147147
* [DropDownList Overview]({%slug components/dropdownlist/overview%})
148148
* [Live Demo: DropDownList](https://demos.telerik.com/blazor-ui/dropdownlist/index)
149-

components/dropdownlist/overview.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To use a Telerik DropDownList for Blazor
5353
````CSHTML
5454
@using Telerik.Blazor.Components.DropDownList
5555
56-
<TelerikDropDownList @ref="myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="3">
56+
<TelerikDropDownList @ref:suppressField @ref="myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="3">
5757
</TelerikDropDownList>
5858
@code {
5959
//the type of the generic component is determined by the type of the model you pass to it, and the type of its value field
@@ -68,7 +68,7 @@ To use a Telerik DropDownList for Blazor
6868
}
6969
}
7070
71-
<TelerikDropDownList @ref="myDdlRef2" Data="@MyList" @bind-Value="MyItem">
71+
<TelerikDropDownList @ref:suppressField @ref="myDdlRef2" Data="@MyList" @bind-Value="MyItem">
7272
</TelerikDropDownList>
7373
7474
@code {
@@ -159,7 +159,7 @@ The DropDownList provides the following features:
159159
@using Telerik.Blazor.Components.DropDownList
160160
@using Telerik.Blazor.Components.Button
161161
162-
<TelerikDropDownList @ref="myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="5">
162+
<TelerikDropDownList @ref:suppressField @ref="myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="5">
163163
</TelerikDropDownList>
164164
<TelerikButton OnClick="@GetSelectedItem">Get Selected Item</TelerikButton> @result
165165
@code {
@@ -200,4 +200,3 @@ The DropDownList provides the following features:
200200
* [Live Demo: DropDownList](https://demos.telerik.com/blazor-ui/dropdownlist/index)
201201
* [Live Demo: DropDownList Validation](https://demos.telerik.com/blazor-ui/dropdownlist/validation)
202202

203-

components/grid/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The grid is a generic component, and to store a reference, you must use the mode
6969
````CSHTML
7070
@using Telerik.Blazor.Components.Grid
7171
72-
<TelerikGrid Data="@MyData" @ref="theGridReference">
72+
<TelerikGrid Data="@MyData" @ref:suppressField @ref="theGridReference">
7373
<TelerikGridColumns>
7474
<TelerikGridColumn Field="@(nameof(SampleData.ID))">
7575
</TelerikGridColumn>

0 commit comments

Comments
 (0)