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

IgniteUI / igniteui-angular / 13331632524

14 Feb 2025 02:51PM CUT 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

25.0
/projects/igniteui-angular/src/lib/drop-down/drop-down-group.component.ts
1
import { Component, Input, HostBinding, booleanAttribute } from '@angular/core';
2

3
let NEXT_ID = 0;
2✔
4
/**
5
 * The `<igx-drop-down-item>` is a container intended for row items in
6
 * a `<igx-drop-down>` container.
7
 */
8
@Component({
9
    selector: 'igx-drop-down-item-group',
10
    template: `
11
        <label id="{{labelId}}">{{ label }}</label>
12
        <ng-content select="igx-drop-down-item"></ng-content>
13
    `,
14
    standalone: true
15
})
16
export class IgxDropDownGroupComponent {
2✔
17
    /**
18
     * @hidden @internal
19
     */
20
    public get labelId(): string {
UNCOV
21
        return `igx-item-group-label-${this._id}`;
×
22
    }
23

24
    @HostBinding(`attr.aria-labelledby`)
25
    public get labelledBy(): string {
UNCOV
26
        return this.labelId;
×
27
    }
28

29
    /**
30
     * @hidden @internal
31
     */
32
    @HostBinding('attr.role')
UNCOV
33
    public role = 'group';
×
34

35
    /** @hidden @internal */
36
    @HostBinding('class.igx-drop-down__group')
UNCOV
37
    public groupClass = true;
×
38
    /**
39
     * Sets/gets if the item group is disabled
40
     *
41
     * ```typescript
42
     * const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup;
43
     * // get
44
     * ...
45
     * const groupState: boolean = myDropDownGroup.disabled;
46
     * ...
47
     * //set
48
     * ...
49
     * myDropDownGroup,disabled = false;
50
     * ...
51
     * ```
52
     *
53
     * ```html
54
     * <igx-drop-down-item-group [label]="'My Items'" [disabled]="true">
55
     *     <igx-drop-down-item *ngFor="let item of items[index]" [value]="item.value">
56
     *         {{ item.text }}
57
     *     </igx-drop-down-item>
58
     * </igx-drop-down-item-group>
59
     * ```
60
     *
61
     * **NOTE:** All items inside of a disabled drop down group will be treated as disabled
62
     */
63
    @Input({ transform: booleanAttribute })
64
    @HostBinding(`attr.aria-disabled`)
65
    @HostBinding('class.igx-drop-down__group--disabled')
UNCOV
66
    public disabled = false;
×
67

68
    /**
69
     * Sets/gets the label of the item group
70
     *
71
     * ```typescript
72
     * const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup;
73
     * // get
74
     * ...
75
     * const myLabel: string = myDropDownGroup.label;
76
     * ...
77
     * // set
78
     * ...
79
     * myDropDownGroup.label = 'My New Label';
80
     * ...
81
     * ```
82
     *
83
     * ```html
84
     * <igx-drop-down-item-group [label]="'My new Label'">
85
     *      ...
86
     * </igx-drop-down-item-group>
87
     * ```
88
     */
89
    @Input()
90
    public label: string;
91

UNCOV
92
    private _id = NEXT_ID++;
×
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