Skip to content

Commit 5ee1855

Browse files
chore(common): add using satements for Preview 4
1 parent 2a4c78d commit 5ee1855

File tree

22 files changed

+62
-25
lines changed

22 files changed

+62
-25
lines changed

common-features/font-icons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can find the full list of available icons in the [Kendo UI Web Font Icons Li
1919
>caption How to use a built-in font icon class on a component's Icon property
2020
2121
````CSHTML
22-
@using Telerik.Blazor
22+
@using Telerik.Blazor.Components.Button
2323
2424
<TelerikButton Icon="@IconName.Filter">I show the Filter icon</TelerikButton>
2525
<br />

common-features/input-validation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Simple textbox-like inputs do not have any special behavior. You need to bind th
3434
>caption How to validate inputs
3535
3636
````CSHTML
37+
@using Telerik.Blazor.Components.TextBox
3738
@using Telerik.Blazor.Components.NumericTextBox
39+
@using Telerik.Blazor.Components.DateInput
3840
@using System.ComponentModel.DataAnnotations
3941
4042
<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">
@@ -99,6 +101,7 @@ The DropDownList always has an item selected - the first item from its data sour
99101
>caption How to validate a dropdownlist
100102
101103
````CSHTML
104+
@using Telerik.Blazor.Components.DropDownList
102105
@using System.ComponentModel.DataAnnotations
103106
104107
<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">

components/animationcontainer/overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
1717
>caption How to use the Animation Container
1818
1919
````CSHTML
20-
@using Telerik.Blazor
20+
@using Telerik.Blazor.Components.AnimationContainer
21+
@using Telerik.Blazor.Components.Button
2122
2223
<TelerikAnimationContainer Top="300" Width="100" Height="100" Visible="@Shown" AnimationType="AnimationType.ZoomOut" Class="k-popup">
2324
My content goes here. The "k-popup" class adds some background and borders which you can define through your own styles instead.
@@ -60,7 +61,8 @@ The animation container exposes the following properties:
6061
>caption Explore the animation options
6162
6263
````
63-
@using Telerik.Blazor
64+
@using Telerik.Blazor.Components.AnimationContainer
65+
@using Telerik.Blazor.Components.Button
6466
6567
<TelerikAnimationContainer Top="300" Width="100" Height="100" Visible="@Shown" AnimationType="@AnimType" Class="my-popup">
6668
My content goes here.

components/button/overview.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ To add a Telerik Button to your Blazor app, use the `<TelerikButton>` tag:
2121
>caption Basic Telerik Button tag
2222
2323
````CSHTML
24+
@using Telerik.Blazor.Components.Button
25+
2426
<TelerikButton>Hello!</TelerikButton>
2527
````
2628

@@ -35,7 +37,7 @@ To attach a click handler, use the `OnClick` attribute and define the method in
3537
>caption Click handler for a Telerik Button
3638
3739
````CSHTML
38-
@using Telerik.Blazor
40+
@using Telerik.Blazor.Components.Button
3941
4042
<TelerikButton OnClick="@myHandler">Click me!</TelerikButton>
4143
@@ -58,6 +60,8 @@ You can style the button through its `Class` attribute to define your own CSS ru
5860
>caption Set CSS class to the button and change its appearance
5961
6062
````CSHTML
63+
@using Telerik.Blazor.Components.Button
64+
6165
<TelerikButton Class="RedText">My text is red.</TelerikButton>
6266
6367
<style>
@@ -77,6 +81,8 @@ You can also make the button use a strong color to attact attention, called Prim
7781
>caption Button with the Primary color scheme from the current theme
7882
7983
````CSHTML
84+
@using Telerik.Blazor.Components.Button
85+
8086
<TelerikButton Primary="true">Primary</TelerikButton>
8187
````
8288

@@ -101,7 +107,7 @@ The following example shows how to use an image from a URL, a sprite image, and
101107
>caption How to use icons in Telerik Button
102108
103109
````CSHTML
104-
@using Telerik.Blazor
110+
@using Telerik.Blazor.Components.Button
105111
106112
<TelerikButton SpriteClass="k-icon netherlandsFlag">Sprite</TelerikButton>
107113
<TelerikButton Icon="@IconName.Filter">Font Icon</TelerikButton>
@@ -129,6 +135,8 @@ To disable a button, set its `Enabled` attribute to `false`.
129135
>caption Disabled Telerik Button
130136
131137
````CSHTML
138+
@using Telerik.Blazor.Components.Button
139+
132140
<TelerikButton Enabled="false">Disabled Button</TelerikButton>
133141
````
134142

components/dateinput/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The date input provides the following features:
7575
>caption Example of using validation to prompt the user for certain input
7676
7777
````CSHTML
78-
@using Telerik.Blazor
78+
@using Telerik.Blazor.Components.DateInput
7979
@using System.ComponentModel.DataAnnotations
8080
8181
<EditForm Model="@person">

components/dropdownlist/overview.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To use a Telerik DropDownList for Blazor
2424
@[template](/_contentTemplates/common/issues-and-warnings.md#generic-component-event-issue)
2525

2626
````CSHTML
27-
@using Telerik.Blazor
27+
@using Telerik.Blazor.Components.DropDownList
2828
2929
<TelerikDropDownList Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" ValueChanged="@MyValueChangedHandler" Value="@selectedValue">
3030
</TelerikDropDownList>
@@ -127,6 +127,7 @@ The DropDownList component attempts to infer the type of its model and value bas
127127
>caption Validating a dropdownlist. See the comments in the code for details on the behavior
128128
129129
````CSHTML
130+
@using Telerik.Blazor.Components.DropDownList
130131
@using System.ComponentModel.DataAnnotations
131132
132133
<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">
@@ -182,7 +183,7 @@ The DropDownList component attempts to infer the type of its model and value bas
182183
>caption Get selected item from external code
183184
184185
````CSHTML
185-
using Telerik.Blazor.Components.DropDownList
186+
@using Telerik.Blazor.Components.DropDownList
186187
187188
<TelerikDropDownList ref="@myDdlRef" Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" Value="5">
188189
</TelerikDropDownList>

components/grid/columns/command.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The `OnClick` handler of the commands receives an argument of type `GridCommandE
4040
4141
````CSHTML
4242
@using Telerik.Blazor
43+
@using Telerik.Blazor.Components.Grid
4344
4445
<span>Edit will cancelled for "name 2"</span>
4546
<br />@CustomCommandResult

components/grid/editing/incell.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ To enable InCell editing mode, set the `EditMode` property of the grid to `incel
2020
2121
````CSHTML
2222
@using Telerik.Blazor
23+
@using Telerik.Blazor.Components.Grid
2324
2425
<strong>Click a cell, edit it and click outside of the cell to see the change. Editing is prevented for the first two items.</strong>
2526

components/grid/editing/inline.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ To enable Inline editing in the grid, set its `EditMode` property to `inline`, t
2222
2323
````CSHTML
2424
@using Telerik.Blazor
25+
@using Telerik.Blazor.Components.Grid
2526
2627
<strong>Editing is cancelled for the first two records.</strong>
2728

components/grid/editing/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The event handlers receive an argument of type `GridCommandEventArgs` that expos
3636
3737
````CSHTML
3838
@using Telerik.Blazor
39+
@using Telerik.Blazor.Components.Grid
3940
4041
<strong>Double click a cell in the Name column, edit the name and click outside of the cell to see the change. Editing is cancelled for the first two records.</strong>
4142

0 commit comments

Comments
 (0)