Skip to content

Commit a46167a

Browse files
Remove IconName class mentions (#207)
1 parent b17576c commit a46167a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+194
-201
lines changed

_contentTemplates/grid/export.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
<TelerikGrid Data="@GridData" AutoGenerateColumns="true" Pageable="true">
2828
<GridToolBar>
29-
<GridCommandButton OnClick="@ShowLoadingSign" Command="ExcelExport" Icon="@IconName.FileExcel">Export to Excel</GridCommandButton>
30-
<GridCommandButton OnClick="@ShowLoadingSign" Command="CsvExport" Icon="@IconName.FileCsv">Export to CSV</GridCommandButton>
29+
<GridCommandButton OnClick="@ShowLoadingSign" Command="ExcelExport" Icon="file-excel">Export to Excel</GridCommandButton>
30+
<GridCommandButton OnClick="@ShowLoadingSign" Command="CsvExport" Icon="file-csv">Export to CSV</GridCommandButton>
3131
</GridToolBar>
3232
<GridExport>
3333
<GridExcelExport AllPages="true" FileName="telerik-grid-export" />

common-features/font-icons.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ In this article:
2323

2424
Telerik UI for Blazor comes with the `TelerikIcon` component that you can use to render icons. It works with the following image types:
2525

26-
* **Telerik font icon** - the `Telerik.Blazor.IconName` static class allows you to supply an `Icon` parameter that takes a **Telerik icon** from our built-in collection. To find the available **Telerik icons**, you can:
27-
28-
* Use Visual Studio's IntelliSense.
29-
30-
* Refer to the [online API Reference](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.IconName) article.
31-
32-
>tip Telerik UI for Blazor uses the same icons as the Kendo UI suite. You can find the rendered icons in the [Kendo UI Web Font Icons Library](https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web) article. When you use the icon names in this article, remove the `k-i-` prefix, and you will get the correct icon name for Blazor UI. You can use them as hardcoded strings as well. Their corresponding class members are in `CamelCase`.
26+
* **Telerik font icon** - Telerik UI for Blazor uses the same icons as the Kendo UI suite. You can find the rendered icons in the [Kendo UI Web Font Icons Library](https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web) article. When you use the icon names in this article, remove the `k-i-` prefix, and you will get the correct icon name for Blazor UI.
3327

3428
* **Third party font-icon** - the `IconClass` parameter lets you set a CSS class that provides the required font name, font size and content for the `::before` pseudoelement.
3529

@@ -40,9 +34,7 @@ Telerik UI for Blazor comes with the `TelerikIcon` component that you can use to
4034
>caption Render a standalone icon through the TelerikIcon component
4135
4236
````CSHTML
43-
<TelerikIcon Icon="@IconName.Audio" /> @* will render the audio note icon *@
44-
45-
@* <TelerikIcon Icon="audio" /> *@ @* This would also render the same audio icon *@
37+
<TelerikIcon Icon="audio" /> @* will render the audio note icon *@
4638
4739
<TelerikIcon IconClass="oi oi-home" /> @* home icon from OpenIconic, assuming you have loaded the font on the page, you can use your own CSS classes and font icon fonts *@
4840
@@ -71,9 +63,7 @@ Some Telerik components expose icon features out-of-the box. These parameters ma
7163
>caption How to use a built-in font icon class on a component's Icon property
7264
7365
````CSHTML
74-
<TelerikButton Icon="@IconName.Filter">I show the Filter icon</TelerikButton>
75-
<br />
76-
<TelerikButton Icon="filter">I also show the Filter icon through a hardcoded class name</TelerikButton>
66+
<TelerikButton Icon="filter">I show the Filter icon</TelerikButton>
7767
````
7868

7969
>caption The result from the code snippet above
-3.83 KB
Loading

components/button/icons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The following example shows how to use an image from a URL, a sprite image, and
2727
2828
````CSHTML
2929
<TelerikButton SpriteClass="k-icon netherlandsFlag">Sprite</TelerikButton>
30-
<TelerikButton Icon="@IconName.Filter">Font Icon</TelerikButton>
30+
<TelerikButton Icon="filter">Font Icon</TelerikButton>
3131
<TelerikButton ImageUrl="https://docs.telerik.com/blazor-ui/images/snowboarding.png">Image URL</TelerikButton>
3232
3333
<style>

components/buttongroup/icons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It also shows how to use telerik icons, raster icons and sprite images*@
3333
<TelerikButtonGroup SelectionMode="@ButtonGroupSelectionMode.Multiple">
3434
<ButtonGroupToggleButton SpriteClass="@( FlagSelected ? "flag netherlands" : "flag brazil")" @bind-Selected="@FlagSelected">Sprite</ButtonGroupToggleButton>
3535
36-
<ButtonGroupToggleButton Icon="@( FontSelected ? IconName.VolumeOff : IconName.VolumeUp )" @bind-Selected="@FontSelected">Font Icon</ButtonGroupToggleButton>
36+
<ButtonGroupToggleButton Icon="@( FontSelected ? "volume-off" : "volume-up" )" @bind-Selected="@FontSelected">Font Icon</ButtonGroupToggleButton>
3737
3838
<ButtonGroupToggleButton ImageUrl="@RasterIconUrl" @bind-Selected="@RasterSelected">Image URL</ButtonGroupToggleButton>
3939
</TelerikButtonGroup>

components/chart/tooltip/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The available series data point information in the `context` is:
228228
Data="@modelData" Field="@nameof(MyDataModel.SecondSeriesValue)">
229229
<ChartSeriesTooltip Visible="true">
230230
<Template>
231-
<TelerikIcon Icon="@IconName.Information" />
231+
<TelerikIcon Icon="information" />
232232
@((context.DataItem as MyDataModel).SecondSeriesValue) for @((context.DataItem as MyDataModel).ExtraData)
233233
</Template>
234234
</ChartSeriesTooltip>

components/chart/tooltip/shared.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Each `Point` contains the following data:
112112
foreach (var point in points)
113113
{
114114
<div>
115-
<TelerikIcon Icon="@IconName.Information" />
115+
<TelerikIcon Icon="information" />
116116
@*this example shows how to parse the FormattedValue to a int,*@
117117
@*but you can also parse it to any other type your data uses / has*@
118118
Point value: @(int.Parse(point.FormattedValue).ToString("C"))

components/contextmenu/events.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,30 @@ Last clicked item: @ClickedItem?.Text
5454
new MenuItem()
5555
{
5656
Text = "Share",
57-
Icon = IconName.Share,
57+
Icon = "share",
5858
Items = new List<MenuItem>()
5959
{
6060
new MenuItem()
6161
{
6262
Text = "FaceBook",
63-
Icon = IconName.Facebook
63+
Icon = "facebook"
6464
},
6565
new MenuItem()
6666
{
6767
Text = "LinkedIn",
68-
Icon = IconName.Linkedin
68+
Icon = "linkedin"
6969
},
7070
new MenuItem()
7171
{
7272
Text = "Twitter",
73-
Icon = IconName.Twitter
73+
Icon = "twitter"
7474
},
7575
}
7676
},
7777
new MenuItem()
7878
{
7979
Text = "Map Location",
80-
Icon = IconName.MarkerPin
80+
Icon = "marker-pin"
8181
}
8282
};
8383

components/contextmenu/icons.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ The `IconClassField` and `ImageUrlField` are rendered, respectively, as `<span c
2626
@* This example shows how to add icons or images to context menu items
2727
Make sure that you also refernce the OpenIconic font that comes with the Blazor App template to see the custom font icon *@
2828
29-
<TelerikMenu Data="@MenuData"
30-
IconField="@nameof(MenuModel.TelerikIcon)"
31-
ImageUrlField="@nameof(MenuModel.MyImage)"
32-
IconClassField="@nameof(MenuModel.MyIconClass)">
33-
</TelerikMenu>
29+
<div id="context-menu-target" style="background:yellow;">right click for context menu</div>
30+
31+
<TelerikContextMenu Data="@MenuData"
32+
Selector="#context-menu-target"
33+
IconField="@nameof(MenuModel.TelerikIcon)"
34+
ImageUrlField="@nameof(MenuModel.MyImage)"
35+
IconClassField="@nameof(MenuModel.MyIconClass)">
36+
</TelerikContextMenu>
3437
3538
@code {
3639
public List<MenuModel> MenuData { get; set; }
@@ -47,7 +50,7 @@ Make sure that you also refernce the OpenIconic font that comes with the Blazor
4750
new MenuModel()
4851
{
4952
Text = "IconField",
50-
TelerikIcon = IconName.Email
53+
TelerikIcon = "email"
5154
},
5255
new MenuModel()
5356
{

components/contextmenu/integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Hooking to your own HTML elements' events lets you determine what to do with the
9494
new ContextMenuItem
9595
{
9696
Text = "More Info",
97-
Icon = IconName.Information,
97+
Icon = "information",
9898
CommandName = "info"
9999
},
100100
new ContextMenuItem
@@ -109,13 +109,13 @@ Hooking to your own HTML elements' events lets you determine what to do with the
109109
new ContextMenuItem
110110
{
111111
Text = "Delete",
112-
Icon = IconName.Delete,
112+
Icon = "delete",
113113
CommandName = "delete"
114114
},
115115
new ContextMenuItem
116116
{
117117
Text = "Report",
118-
Icon = IconName.Cancel,
118+
Icon = "cancel",
119119
CommandName = "report"
120120
}
121121
}
@@ -292,9 +292,9 @@ In this example, the context menu is used to select/deselect items, put an item
292292
// context menu items
293293
MenuItems = new List<MenuItem>()
294294
{
295-
new MenuItem(){ Text = "Select", Icon=IconName.CheckboxChecked, CommandName="ToggleSelect" },
296-
new MenuItem(){ Text = "Edit", Icon=IconName.Edit, CommandName="BeginEdit" },
297-
new MenuItem(){ Text = "Delete", Icon=IconName.Delete, Action = DeleteItem }
295+
new MenuItem(){ Text = "Select", Icon="checkbox-checked", CommandName="ToggleSelect" },
296+
new MenuItem(){ Text = "Edit", Icon="edit", CommandName="BeginEdit" },
297+
new MenuItem(){ Text = "Delete", Icon="delete", Action = DeleteItem }
298298
};
299299
300300
// generate data for the grid

0 commit comments

Comments
 (0)