Skip to content

Commit 7b78f72

Browse files
authored
fix(*): Import IgxButtonDirective in services samples (#3909)
1 parent 7dbd403 commit 7b78f72

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p>
22
Press the "Export CSV Data" button below to export an array as .csv file.<br />
3-
<button (click)="exportCsvButtonHandler()">Export CSV Data</button>
3+
<button igxButton="contained" (click)="exportCsvButtonHandler()">Export CSV Data</button>
44
<br />
55
Press the "Export TSV Data" button below to export an array as .tsv file.<br />
6-
<button (click)="exportTsvButtonHandler()">Export TSV Data</button><br />
7-
</p>
6+
<button igxButton="contained" (click)="exportTsvButtonHandler()">Export TSV Data</button><br />
7+
</p>

src/app/services/export-csv/csv-export.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import { Component, inject } from '@angular/core';
33

44
import { CsvFileTypes, IgxCsvExporterOptions, IgxCsvExporterService } from 'igniteui-angular/grids/core';
5+
import { IgxButtonDirective } from 'igniteui-angular/directives';
56

67
@Component({
78
selector: 'app-csv-export',
89
styleUrls: ['./csv-export.component.scss'],
9-
templateUrl: './csv-export.component.html'
10+
templateUrl: './csv-export.component.html',
11+
imports: [IgxButtonDirective]
1012
})
1113
export class CsvExportComponent {
1214
private csvExportService = inject(IgxCsvExporterService);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<p>
22
Press the "Export Data" button below to export an array as .xlsx file.<br />
3-
<button (click)="exportButtonHandler()">Export Data</button><br />
3+
<button igxButton="contained" (click)="exportButtonHandler()">Export Data</button><br />
44
</p>

src/app/services/export-excel/excel-export.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import { Component, inject } from '@angular/core';
33

44
import { IgxExcelExporterOptions, IgxExcelExporterService } from 'igniteui-angular/grids/core';
5+
import { IgxButtonDirective } from 'igniteui-angular/directives';
56

67
@Component({
78
selector: 'app-excel-export',
89
styleUrls: ['./excel-export.component.scss'],
9-
templateUrl: './excel-export.component.html'
10+
templateUrl: './excel-export.component.html',
11+
imports: [IgxButtonDirective]
1012
})
1113
export class ExcelExportComponent {
1214
private excelExportService = inject(IgxExcelExporterService);

src/app/services/transaction/transaction-base/transaction-base.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
66
import { WISHLIST, WishlistItem } from '../data';
77
import { NgClass } from '@angular/common';
88
import { TransactionBasePipe } from '../pipes/transaction-base.pipe';
9+
import { IgxButtonDirective } from 'igniteui-angular/directives';
910

1011
@Component({
1112
providers: [IgxTransactionService],
1213
selector: 'app-transaction-base',
1314
styleUrls: ['./transaction-base.component.scss'],
1415
templateUrl: 'transaction-base.component.html',
15-
imports: [IgxCardComponent, IgxListComponent, IgxListItemComponent, NgClass, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxIconComponent, IgxListActionDirective, TransactionBasePipe]
16+
imports: [IgxButtonDirective, IgxCardComponent, IgxListComponent, IgxListItemComponent, NgClass, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxIconComponent, IgxListActionDirective, TransactionBasePipe]
1617
})
1718
export class TransactionBaseComponent {
1819
transactions = inject<IgxTransactionService<Transaction, State>>(IgxTransactionService);

0 commit comments

Comments
 (0)