Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/services/export-csv/csv-export.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p>
Press the "Export CSV Data" button below to export an array as .csv file.<br />
<button (click)="exportCsvButtonHandler()">Export CSV Data</button>
<button igxButton="contained" (click)="exportCsvButtonHandler()">Export CSV Data</button>
<br />
Press the "Export TSV Data" button below to export an array as .tsv file.<br />
<button (click)="exportTsvButtonHandler()">Export TSV Data</button><br />
</p>
<button igxButton="contained" (click)="exportTsvButtonHandler()">Export TSV Data</button><br />
</p>
4 changes: 3 additions & 1 deletion src/app/services/export-csv/csv-export.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
import { Component, inject } from '@angular/core';

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

@Component({
selector: 'app-csv-export',
styleUrls: ['./csv-export.component.scss'],
templateUrl: './csv-export.component.html'
templateUrl: './csv-export.component.html',
imports: [IgxButtonDirective]
})
export class CsvExportComponent {
private csvExportService = inject(IgxCsvExporterService);
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/export-excel/excel-export.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>
Press the "Export Data" button below to export an array as .xlsx file.<br />
<button (click)="exportButtonHandler()">Export Data</button><br />
<button igxButton="contained" (click)="exportButtonHandler()">Export Data</button><br />
</p>
4 changes: 3 additions & 1 deletion src/app/services/export-excel/excel-export.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
import { Component, inject } from '@angular/core';

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

@Component({
selector: 'app-excel-export',
styleUrls: ['./excel-export.component.scss'],
templateUrl: './excel-export.component.html'
templateUrl: './excel-export.component.html',
imports: [IgxButtonDirective]
})
export class ExcelExportComponent {
private excelExportService = inject(IgxExcelExporterService);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
import { WISHLIST, WishlistItem } from '../data';
import { NgClass } from '@angular/common';
import { TransactionBasePipe } from '../pipes/transaction-base.pipe';
import { IgxButtonDirective } from 'igniteui-angular/directives';

@Component({
providers: [IgxTransactionService],
selector: 'app-transaction-base',
styleUrls: ['./transaction-base.component.scss'],
templateUrl: 'transaction-base.component.html',
imports: [IgxCardComponent, IgxListComponent, IgxListItemComponent, NgClass, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxIconComponent, IgxListActionDirective, TransactionBasePipe]
imports: [IgxButtonDirective, IgxCardComponent, IgxListComponent, IgxListItemComponent, NgClass, IgxListLineTitleDirective, IgxListLineSubTitleDirective, IgxIconComponent, IgxListActionDirective, TransactionBasePipe]
})
export class TransactionBaseComponent {
transactions = inject<IgxTransactionService<Transaction, State>>(IgxTransactionService);
Expand Down