• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-angular / 13331632524

14 Feb 2025 02:51PM UTC coverage: 22.015% (-69.6%) from 91.622%
13331632524

Pull #15372

github

web-flow
Merge d52d57714 into bcb78ae0a
Pull Request #15372: chore(*): test ci passing

1990 of 15592 branches covered (12.76%)

431 of 964 new or added lines in 18 files covered. (44.71%)

19956 existing lines in 307 files now uncovered.

6452 of 29307 relevant lines covered (22.02%)

249.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/projects/igniteui-angular/src/lib/services/exporter-common/exporter-options-base.ts
1
export abstract class IgxExporterOptionsBase {
2
    /**
3
     * Specifies whether hidden columns should be exported.
4
     * ```typescript
5
     * let ignoreColumnsVisibility = this.exportOptions.ignoreColumnsVisibility;
6
     * this.exportOptions.ignoreColumnsVisibility = true;
7
     * ```
8
     *
9
     * @memberof IgxExporterOptionsBase
10
     */
11
    public ignoreColumnsVisibility = false;
6✔
12

13
    /**
14
     * Specifies whether filtered out rows should be exported.
15
     * ```typescript
16
     * let ignoreFiltering = this.exportOptions.ignoreFiltering;
17
     * this.exportOptions.ignoreFiltering = true;
18
     * ```
19
     *
20
     * @memberof IgxExporterOptionsBase
21
     */
22
    public ignoreFiltering = false;
6✔
23

24
    /**
25
     * Specifies if the exporter should ignore the current column order in the IgxGrid.
26
     * ```typescript
27
     * let ignoreColumnsOrder = this.exportOptions.ignoreColumnsOrder;
28
     * this.exportOptions.ignoreColumnsOrder = true;
29
     * ```
30
     *
31
     * @memberof IgxExporterOptionsBase
32
     */
33
    public ignoreColumnsOrder = false;
6✔
34

35
    /**
36
     * Specifies whether the exported data should be sorted as in the provided IgxGrid.
37
     * When you export grouped data, setting ignoreSorting to true will cause
38
     * the grouping to fail because it relies on the sorting of the records.
39
     * ```typescript
40
     * let ignoreSorting = this.exportOptions.ignoreSorting;
41
     * this.exportOptions.ignoreSorting = true;
42
     * ```
43
     *
44
     * @memberof IgxExporterOptionsBase
45
     */
46
    public ignoreSorting = false;
6✔
47

48
    /**
49
     * Specifies whether the exported data should be grouped as in the provided IgxGrid.
50
     * ```typescript
51
     * let ignoreGrouping = this.exportOptions.ignoreGrouping;
52
     * this.exportOptions.ignoreGrouping = true;
53
     * ```
54
     *
55
     * @memberof IgxExporterOptionsBase
56
     */
57
    public ignoreGrouping = false;
6✔
58

59
    /**
60
     * Specifies whether the exported data should include multi column headers as in the provided IgxGrid.
61
     * ```typescript
62
     * let ignoreMultiColumnHeaders = this.exportOptions.ignoreMultiColumnHeaders;
63
     * this.exportOptions.ignoreMultiColumnHeaders = true;
64
     * ```
65
     *
66
     * @memberof IgxExporterOptionsBase
67
     */
68
    public ignoreMultiColumnHeaders = false;
6✔
69

70
    /**
71
     * Specifies whether the exported data should include column summaries.
72
     * ```typescript
73
     * let exportSummaries = this.exportOptions.exportSummaries;
74
     * this.exportOptions.exportSummaries = true;
75
     * ```
76
     *
77
     * @memberof IgxExporterOptionsBase
78
     */
79
    public exportSummaries = true;
6✔
80

81
    /**
82
     * Specifies whether the exported data should have frozen headers.
83
     * ```typescript
84
     * let freezeHeaders = this.exportOptions.freezeHeaders;
85
     * this.exportOptions.freezeHeaders = true;
86
     * ```
87
     *
88
     * @memberof IgxExporterOptionsBase
89
     */
90
    public freezeHeaders = false;
6✔
91

92
    /**
93
     * Specifies whether the headers should be exported if there is no data.
94
     * ```typescript
95
     * let alwaysExportHeaders = this.exportOptions.alwaysExportHeaders;
96
     * this.exportOptions.alwaysExportHeaders = false;
97
     * ```
98
     *
99
     * @memberof IgxExporterOptionsBase
100
     */
101
     public alwaysExportHeaders = true;
6✔
102

103
    private _fileName: string;
104

105
    constructor(fileName: string, protected _fileExtension: string) {
6✔
106
        this.setFileName(fileName);
6✔
107
    }
108

109
    private setFileName(fileName: string): void {
110
        this._fileName = fileName + (fileName.endsWith(this._fileExtension) === false ? this._fileExtension : '');
6!
111
    }
112

113
    /**
114
     * Gets the file name which will be used for the exporting operation.
115
     * ```typescript
116
     * let fileName = this.exportOptions.fileName;
117
     * ```
118
     *
119
     * @memberof IgxExporterOptionsBase
120
     */
121
    public get fileName() {
122
        return this._fileName;
6✔
123
    }
124

125
    /**
126
     * Sets the file name which will be used for the exporting operation.
127
     * ```typescript
128
     * this.exportOptions.fileName = 'exportedData01';
129
     * ```
130
     *
131
     * @memberof IgxExporterOptionsBase
132
     */
133
    public set fileName(value) {
UNCOV
134
        this.setFileName(value);
×
135
    }
136

137
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc