Skip to content

Commit 73fff5d

Browse files
chore(common): replace some iconname occurences
1 parent cdee91f commit 73fff5d

File tree

23 files changed

+43
-43
lines changed

23 files changed

+43
-43
lines changed

chart/print-chart-only/print-chart/Components/PrintableChart.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@inject IJSRuntime JSRuntime
22

33
<div class="chart-container @(isPrinting ? "" : "non-printable-chart")">
4-
<TelerikButton OnClick="@Print" Icon="@IconName.Print" Class="print-button">Print this chart</TelerikButton>
4+
<TelerikButton OnClick="@Print" Icon="print" Class="print-button">Print this chart</TelerikButton>
55

66
<TelerikChart Width="700px" Height="400px">
77
<ChartSeriesItems>

common/confirm-button/Pages/Counter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<p>Current count: @currentCount</p>
66

7-
<ConfirmButton OnClick="@IncrementCount" ConfirmText="Are you sure you want to add more?" ButtonText="Counter" ConfirmTitle="Please confirm!" Icon="@IconName.Plus" />
7+
<ConfirmButton OnClick="@IncrementCount" ConfirmText="Are you sure you want to add more?" ButtonText="Counter" ConfirmTitle="Please confirm!" Icon="plus" />
88

99
@code {
1010
int currentCount = 0;

common/confirm-button/Pages/FetchData.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ConfirmText="@( $"Are you sure you want to delete forecast {currItem.Id}?" )"
2020
ButtonText="Delete"
2121
ConfirmTitle="Please confirm!"
22-
Icon="@IconName.Delete"/>
22+
Icon="delete"/>
2323
}
2424
</Template>
2525
</GridColumn>

common/message-box/callback-event/Pages/FetchData.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<GridColumn Field="TemperatureF" />
1414
<GridColumn Field="Summary" />
1515
<GridCommandColumn Width="300px">
16-
<GridCommandButton OnClick="@((args)=> DeleteRecord(args.Item as WeatherForecast))" Icon="@IconName.Delete"></GridCommandButton>
16+
<GridCommandButton OnClick="@((args)=> DeleteRecord(args.Item as WeatherForecast))" Icon="@delete"></GridCommandButton>
1717
</GridCommandColumn>
1818
</GridColumns>
1919
</TelerikGrid>

common/message-box/dynamic-creation/Pages/FetchData.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<GridColumn Field="TemperatureF" />
1414
<GridColumn Field="Summary" />
1515
<GridCommandColumn Width="150px">
16-
<GridCommandButton OnClick="@AddForecast" Icon="@IconName.Plus"></GridCommandButton>
16+
<GridCommandButton OnClick="@AddForecast" Icon="@plus"></GridCommandButton>
1717
<GridCommandButton OnClick="@((args)=> EditForecast(args.Item as WeatherForecast))" Icon="@IconName.ArrowChevronRight"></GridCommandButton>
1818
</GridCommandColumn>
1919
</GridColumns>

common/message-box/dynamic-creation/Shared/PopupLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</WindowContent>
1313

1414
<WindowActions>
15-
<WindowAction Icon="@IconName.Close" OnClick="@Close"></WindowAction>
15+
<WindowAction Icon="@close" OnClick="@Close"></WindowAction>
1616
</WindowActions>
1717

1818
</TelerikWindow>

common/pdf-jpg-export-js/PdfExportJS/Pages/Export_Chart.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@using PdfExportJS.Services
44
@inject DrawingService DrawingService
55

6-
<TelerikButton Icon="@IconName.Image" OnClick="@ExportChartToJPG">Export to .jpg</TelerikButton>
6+
<TelerikButton Icon="@image" OnClick="@ExportChartToJPG">Export to .jpg</TelerikButton>
77

88
<div @ref="ExportChart">
99
<TelerikChart Height="480px" Width="640px">

common/pdf-jpg-export-js/PdfExportJS/Pages/Index.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
1010
Resizable="true" Reorderable="true">
1111
<GridToolBar>
12-
<TelerikButton Icon="@IconName.FilePdf" OnClick="@ExportPdf">Export to PDF</TelerikButton>
13-
<TelerikButton Icon="@IconName.Image" OnClick="@ExportJpg">Export to JPG</TelerikButton>
12+
<TelerikButton Icon="@file-pdf" OnClick="@ExportPdf">Export to PDF</TelerikButton>
13+
<TelerikButton Icon="@image" OnClick="@ExportJpg">Export to JPG</TelerikButton>
1414
</GridToolBar>
1515
<GridColumns>
1616
<GridColumn Field="@(nameof(SampleData.Id))" Width="120px" />

drawer/sidenav/Shared/MainLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
@* This layout is now in the drawer Content, and is very similar to the default template layout *@
4747
<div class="main">
4848
@* This is the button to collapse/expand the drawer, in this sample it is positioned absolutely so it moves with the drawer and stays above the rest of the content *@
49-
<TelerikButton OnClick="@( () => DrawerRef.ToggleAsync() )" Icon="@IconName.Menu" Class="drawer-hamburger"></TelerikButton>
49+
<TelerikButton OnClick="@( () => DrawerRef.ToggleAsync() )" Icon="@menu" Class="drawer-hamburger"></TelerikButton>
5050

5151
<div class="top-row px-4">
5252
<a href="https://docs.microsoft.com/en-us/aspnet/" target="_blank">About</a>

drawer/template/template/Shared/MainLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<Template>
5151
@* the header *@
5252
<TelerikButton OnClick="@( () => DrawerRef.ToggleAsync() )"
53-
Icon="@IconName.Menu"
53+
Icon="@menu"
5454
Class="drawer-hamburger" />
5555
<div class="mt-5">
5656
@if (DrawerExpanded)

drawer/two-drawers/TwoDrawers/Shared/MainLayout.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<Content>
2525

2626
@* Here begins the actual content - for example, we start with buttons to toggle the drawers and the @Body later *@
27-
<TelerikButton OnClick="@(() => DrawerRef.ToggleAsync())" Icon="@IconName.Menu">Toggle LEFT drawer</TelerikButton>
28-
<TelerikButton OnClick="@(() => RightDrawerRef.ToggleAsync())" Icon="@IconName.Menu">Toggle RIGHT drawer</TelerikButton>
27+
<TelerikButton OnClick="@(() => DrawerRef.ToggleAsync())" Icon="@menu">Toggle LEFT drawer</TelerikButton>
28+
<TelerikButton OnClick="@(() => RightDrawerRef.ToggleAsync())" Icon="@menu">Toggle RIGHT drawer</TelerikButton>
2929

3030
<div class="m-5">
3131
Selected Item: @SelectedItem?.Text

editor/ImportExport/EditorImportExport/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="notification-container">
2121
<TelerikAnimationContainer @ref="@FailureNotification" Width="300px" Height="200px" Top="20px" AnimationType=@AnimationType.SlideDown>
2222
<div class="k-widget k-popup k-notification k-notification-info">
23-
<h3><TelerikIcon Icon="@IconName.Cancel" /> Problem</h3>
23+
<h3><TelerikIcon Icon="@cancel" /> Problem</h3>
2424
<p>
2525
The operation failed, there is probably something in the content that prevents the conversion. Try simplifying the content and removing images/lists.
2626
</p>

grid/batch-editing/Pages/Index.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
@{
1414
if (GridIsDirty())
1515
{
16-
<TelerikButton Icon="@IconName.Save" OnClick="@SaveAllChanges" Primary="true">Save All Changes</TelerikButton>
17-
<TelerikButton Icon="@IconName.Cancel" OnClick="@RevertAllChanges">Cancel All Changes</TelerikButton>
16+
<TelerikButton Icon="@save" OnClick="@SaveAllChanges" Primary="true">Save All Changes</TelerikButton>
17+
<TelerikButton Icon="@cancel" OnClick="@RevertAllChanges">Cancel All Changes</TelerikButton>
1818
}
1919
<GridCommandButton Command="Add" Icon="add">Add Employee</GridCommandButton>
2020
if (SelectedItems.Count() > 0)
2121
{
22-
<TelerikButton Icon="@IconName.Delete" OnClick="@DeleteSelected">Delete Selected</TelerikButton>
22+
<TelerikButton Icon="@delete" OnClick="@DeleteSelected">Delete Selected</TelerikButton>
2323
if (SelectionIsDirty())
2424
{
25-
<TelerikButton Icon="@IconName.Undo" OnClick="@RevertSelected">Revert Selected</TelerikButton>
25+
<TelerikButton Icon="@undo" OnClick="@RevertSelected">Revert Selected</TelerikButton>
2626
}
2727
}
2828
}
@@ -43,7 +43,7 @@
4343
}
4444
else if (currItem.IsChanged)
4545
{
46-
<TelerikButton Icon="@IconName.Undo" OnClick="@( () => RevertItem(currItem) )">Revert</TelerikButton>
46+
<TelerikButton Icon="@undo" OnClick="@( () => RevertItem(currItem) )">Revert</TelerikButton>
4747
}
4848
}
4949
</Template>

grid/export-to-xlsx-hierarchy/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
FilterMode="GridFilterMode.FilterMenu"
1515
AutoGenerateColumns="true">
1616
<GridToolBar>
17-
<GridCommandButton Command="ExportToExcel" Icon="@IconName.FileExcel" OnClick="ExportToExcel">Export To Excel</GridCommandButton>
17+
<GridCommandButton Command="ExportToExcel" Icon="@file-excel" OnClick="ExportToExcel">Export To Excel</GridCommandButton>
1818
<TelerikDropDownList Data="formats" TItem="string" TValue="string" @bind-Value="SelectedFormat" />
1919
</GridToolBar>
2020
<GridColumns>

grid/pdf-export-server/Client/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<GridColumn Field="Summary" />
2020
</GridColumns>
2121
<GridToolBar>
22-
<TelerikButton Icon="@IconName.FilePdf" OnClick="@ExportToPdf">Export to PDF</TelerikButton>
22+
<TelerikButton Icon="@file-pdf" OnClick="@ExportToPdf">Export to PDF</TelerikButton>
2323
<label><TelerikCheckBox @bind-Value="@ExportAllPages" />Export All Pages</label>
2424
</GridToolBar>
2525
</TelerikGrid>

grid/pdf-export-server/ServerSideSample/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Sortable="true" Pageable="true" PageSize="20"
1212
Data=@GridData TotalCount=@Total OnRead=@ReadItems>
1313
<GridToolBar>
14-
<TelerikButton Icon="@IconName.FilePdf" OnClick="@ExportToPdf">Export to PDF</TelerikButton>
14+
<TelerikButton Icon="@file-pdf" OnClick="@ExportToPdf">Export to PDF</TelerikButton>
1515
<label><TelerikCheckBox @bind-Value="@ExportAllPages" />Export All Pages</label>
1616
</GridToolBar>
1717
<GridColumns>

grid/print/Pages/PrintSomeColumns.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
88
Resizable="true" Reorderable="true">
99
<GridToolBar>
10-
<GridCommandButton Command="Print" OnClick="@Print" Icon="@IconName.Print">Print</GridCommandButton>
10+
<GridCommandButton Command="Print" OnClick="@Print" Icon="@print">Print</GridCommandButton>
1111
</GridToolBar>
1212
<GridColumns>
1313
@*Use the Visible parameter of the columns to define which of them will not be visible in print mode.*@

grid/print/Pages/PrintWholeGrid.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
5050
Resizable="true" Reorderable="true">
5151
<GridToolBar>
52-
<GridCommandButton Command="Print" OnClick="@Print" Icon="@IconName.Print">Print</GridCommandButton>
52+
<GridCommandButton Command="Print" OnClick="@Print" Icon="@print">Print</GridCommandButton>
5353
</GridToolBar>
5454
<GridColumns>
5555
<GridColumn Field="@(nameof(SampleData.Id))" Width="120px" />

grid/remote-validation/Client/Pages/Index.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ This sample uses a Notification component to show the error message to supplemen
1919
<GridColumn Field="TemperatureF" Title="Temp. F" DisplayFormat="{0:N1}" />
2020
<GridColumn Field="Summary" />
2121
<GridCommandColumn Width="200px" Resizable="false">
22-
<GridCommandButton Command="Save" Icon="@IconName.Save" ShowInEdit="true">Update</GridCommandButton>
23-
<GridCommandButton Command="Edit" Icon="@IconName.Edit" Primary="true">Edit</GridCommandButton>
24-
<GridCommandButton Command="Delete" Icon="@IconName.Delete">Delete</GridCommandButton>
25-
<GridCommandButton Command="Cancel" Icon="@IconName.Cancel" ShowInEdit="true">Cancel</GridCommandButton>
22+
<GridCommandButton Command="Save" Icon="@save" ShowInEdit="true">Update</GridCommandButton>
23+
<GridCommandButton Command="Edit" Icon="@edit" Primary="true">Edit</GridCommandButton>
24+
<GridCommandButton Command="Delete" Icon="@delete">Delete</GridCommandButton>
25+
<GridCommandButton Command="Cancel" Icon="@cancel" ShowInEdit="true">Cancel</GridCommandButton>
2626
</GridCommandColumn>
2727
</GridColumns>
2828
<GridToolBar>
29-
<GridCommandButton Command="Add" Icon="@IconName.Plus" Primary="true">Add Forecast</GridCommandButton>
29+
<GridCommandButton Command="Add" Icon="@plus" Primary="true">Add Forecast</GridCommandButton>
3030
</GridToolBar>
3131
</TelerikGrid>
3232

listview/ValidationExamples/ValidationExamples/Pages/AsyncMethods.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<br />
2626
<TelerikDropDownList Data="@Teams" @bind-Value="@currEditItem.Team" />
2727

28-
<ListViewCommandButton Command="Save" Icon="@IconName.Save">Save</ListViewCommandButton>
29-
<ListViewCommandButton Command="Cancel" Icon="@IconName.Cancel">Cancel</ListViewCommandButton>
28+
<ListViewCommandButton Command="Save" Icon="@save">Save</ListViewCommandButton>
29+
<ListViewCommandButton Command="Cancel" Icon="@cancel">Cancel</ListViewCommandButton>
3030
</EditForm>
3131
}
3232
}
@@ -36,12 +36,12 @@
3636
<div style="border: 1px solid black; margin: 10px; padding: 10px; display: inline-block;">
3737
Employee: @context.Id <br />
3838
Name: @context.Name in team: @context.Team
39-
<ListViewCommandButton Command="Edit" Icon="@IconName.Edit">Edit</ListViewCommandButton>
40-
<ListViewCommandButton Command="Delete" Icon="@IconName.Delete">Delete</ListViewCommandButton>
39+
<ListViewCommandButton Command="Edit" Icon="@edit">Edit</ListViewCommandButton>
40+
<ListViewCommandButton Command="Delete" Icon="@delete">Delete</ListViewCommandButton>
4141
</div>
4242
</Template>
4343
<HeaderTemplate>
44-
<ListViewCommandButton Command="Add" Icon="@IconName.Plus">Add Employee</ListViewCommandButton>
44+
<ListViewCommandButton Command="Add" Icon="@plus">Add Employee</ListViewCommandButton>
4545
<p>In this sample, the first item will not open for editing because of the code in the OnEdit handler</p>
4646
</HeaderTemplate>
4747
</TelerikListView>

listview/ValidationExamples/ValidationExamples/Pages/BasicFormValidation.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<br />
2525
<TelerikDropDownList Data="@Teams" @bind-Value="@currEditItem.Team" />
2626

27-
<ListViewCommandButton Command="Save" Icon="@IconName.Save">Save</ListViewCommandButton>
28-
<ListViewCommandButton Command="Cancel" Icon="@IconName.Cancel">Cancel</ListViewCommandButton>
27+
<ListViewCommandButton Command="Save" Icon="@save">Save</ListViewCommandButton>
28+
<ListViewCommandButton Command="Cancel" Icon="@cancel">Cancel</ListViewCommandButton>
2929
</EditForm>
3030
}
3131
</div>
@@ -34,12 +34,12 @@
3434
<div style="border: 1px solid black; margin: 10px; padding: 10px; display: inline-block;">
3535
Employee: @context.Id <br />
3636
Name: @context.Name in team: @context.Team
37-
<ListViewCommandButton Command="Edit" Icon="@IconName.Edit">Edit</ListViewCommandButton>
38-
<ListViewCommandButton Command="Delete" Icon="@IconName.Delete">Delete</ListViewCommandButton>
37+
<ListViewCommandButton Command="Edit" Icon="@edit">Edit</ListViewCommandButton>
38+
<ListViewCommandButton Command="Delete" Icon="@delete">Delete</ListViewCommandButton>
3939
</div>
4040
</Template>
4141
<HeaderTemplate>
42-
<ListViewCommandButton Command="Add" Icon="@IconName.Plus">Add Employee</ListViewCommandButton>
42+
<ListViewCommandButton Command="Add" Icon="@plus">Add Employee</ListViewCommandButton>
4343
<p>In this sample, the first item will not open for editing because of the code in the OnEdit handler</p>
4444
</HeaderTemplate>
4545
</TelerikListView>

listview/ValidationExamples/ValidationExamples/Pages/CustomForm.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
<div style="border: 1px solid black; margin: 10px; padding: 10px; display: inline-block;">
1212
Employee: @context.Id <br />
1313
Name: @context.Name in team: @context.Team
14-
<TelerikButton OnClick="@( _ => EditExisting(context) )" Icon="@IconName.Edit">Edit</TelerikButton>
15-
<ListViewCommandButton Command="Delete" Icon="@IconName.Delete">Delete</ListViewCommandButton>
14+
<TelerikButton OnClick="@( _ => EditExisting(context) )" Icon="@edit">Edit</TelerikButton>
15+
<ListViewCommandButton Command="Delete" Icon="@delete">Delete</ListViewCommandButton>
1616
</div>
1717
</Template>
1818
<HeaderTemplate>
19-
<TelerikButton OnClick="@AddNew" Icon="@IconName.Plus">Add Employee</TelerikButton>
19+
<TelerikButton OnClick="@AddNew" Icon="@plus">Add Employee</TelerikButton>
2020
</HeaderTemplate>
2121
</TelerikListView>
2222

sample-applications/blazor-stocks/Client/Components/StocksGrid/ConfirmButton.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<TelerikButton Icon="@IconName.Delete" Class="text-danger" OnClick="@( _ => WindowVisible = true )" Enabled="@Enabled">
1+
<TelerikButton Icon="@delete" Class="text-danger" OnClick="@( _ => WindowVisible = true )" Enabled="@Enabled">
22
Remove
33
</TelerikButton>
44

0 commit comments

Comments
 (0)