• 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

9.09
/projects/igniteui-angular/src/lib/expansion-panel/expansion-panel-body.component.ts
1
import { Component, HostBinding, ElementRef, Input, ChangeDetectorRef, Inject } from '@angular/core';
2
import { IgxExpansionPanelBase, IGX_EXPANSION_PANEL_COMPONENT } from './expansion-panel.common';
3

4
@Component({
5
    selector: 'igx-expansion-panel-body',
6
    template: `<ng-content></ng-content>`,
7
    standalone: true
8
})
9
export class IgxExpansionPanelBodyComponent {
2✔
10
    /**
11
     * @hidden
12
     */
13
    @HostBinding('class.igx-expansion-panel__body')
UNCOV
14
    public cssClass = `igx-expansion-panel__body`;
×
15

16
    /**
17
     * Gets/sets the `role` attribute of the panel body
18
     * Default is 'region';
19
     * Get
20
     * ```typescript
21
     *  const currentRole = this.panel.body.role;
22
     * ```
23
     * Set
24
     * ```typescript
25
     *  this.panel.body.role = 'content';
26
     * ```
27
     * ```html
28
     *  <igx-expansion-panel-body [role]="'custom'"></igx-expansion-panel-body>
29
     * ```
30
     */
31
    @Input()
32
    @HostBinding('attr.role')
UNCOV
33
    public role = 'region';
×
34

UNCOV
35
    private _labelledBy = '';
×
UNCOV
36
    private _label = '';
×
37
    constructor(
UNCOV
38
        @Inject(IGX_EXPANSION_PANEL_COMPONENT) public panel: IgxExpansionPanelBase,
×
UNCOV
39
        public element: ElementRef, public cdr: ChangeDetectorRef) {
×
40
    }
41

42
    /**
43
     * Gets the `aria-label` attribute of the panel body
44
     * Defaults to the panel id with '-region' in the end;
45
     * Get
46
     * ```typescript
47
     *  const currentLabel = this.panel.body.label;
48
     * ```
49
     */
50
    @Input()
51
    @HostBinding('attr.aria-label')
52
    public get label(): string {
UNCOV
53
        return this._label || this.panel.id + '-region';
×
54
    }
55
    /**
56
     * Sets the `aria-label` attribute of the panel body
57
     * ```typescript
58
     *  this.panel.body.label = 'my-custom-label';
59
     * ```
60
     * ```html
61
     *  <igx-expansion-panel-body [label]="'my-custom-label'"></igx-expansion-panel-body>
62
     * ```
63
     */
64
    public set label(val: string) {
UNCOV
65
        this._label = val;
×
66
    }
67

68
    /**
69
     * Gets the `aria-labelledby` attribute of the panel body
70
     * Defaults to the panel header id;
71
     * Get
72
     * ```typescript
73
     *  const currentLabel = this.panel.body.labelledBy;
74
     * ```
75
     */
76
    @Input()
77
    @HostBinding('attr.aria-labelledby')
78
    public get labelledBy(): string {
UNCOV
79
        return this._labelledBy;
×
80
    }
81
    /**
82
     * Sets the `aria-labelledby` attribute of the panel body
83
     * ```typescript
84
     *  this.panel.body.labelledBy = 'my-custom-id';
85
     * ```
86
     * ```html
87
     *  <igx-expansion-panel-body [labelledBy]="'my-custom-id'"></igx-expansion-panel-body>
88
     * ```
89
     */
90
    public set labelledBy(val: string) {
UNCOV
91
        this._labelledBy = val;
×
92
    }
93
}
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