• 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

8.33
/projects/igniteui-angular/src/lib/tabs/tab-header.directive.ts
1

2
import { Directive, ElementRef, HostBinding, HostListener } from '@angular/core';
3
import { PlatformUtil } from '../core/utils';
4
import { IgxTabItemDirective } from './tab-item.directive';
5
import { IgxTabHeaderBase, IgxTabsBase } from './tabs.base';
6

7
@Directive()
8
export abstract class IgxTabHeaderDirective implements IgxTabHeaderBase {
2✔
9

10
    /** @hidden */
11
    @HostBinding('attr.role')
UNCOV
12
    public role = 'tab';
×
13

14
    /** @hidden */
15
    constructor(
UNCOV
16
        protected tabs: IgxTabsBase,
×
UNCOV
17
        public tab: IgxTabItemDirective,
×
UNCOV
18
        private elementRef: ElementRef<HTMLElement>,
×
UNCOV
19
        protected platform: PlatformUtil
×
20
    ) { }
21

22
    /** @hidden */
23
    @HostBinding('attr.tabindex')
24
    public get tabIndex() {
UNCOV
25
        return this.tab.selected ? 0 : -1;
×
26
    }
27

28
    /** @hidden */
29
    @HostBinding('attr.aria-selected')
30
    public get ariaSelected() {
UNCOV
31
        return this.tab.selected;
×
32
    }
33

34
    /** @hidden */
35
    @HostBinding('attr.aria-disabled')
36
    public get ariaDisabled() {
UNCOV
37
        return this.tab.disabled;
×
38
    }
39

40
    /** @hidden */
41
    @HostListener('click')
42
    public onClick() {
UNCOV
43
        if (this.tab.panelComponent) {
×
UNCOV
44
            this.tabs.selectTab(this.tab, true);
×
45
        }
46
    }
47

48
    /** @hidden */
49
    public get nativeElement() {
UNCOV
50
        return this.elementRef.nativeElement;
×
51
    }
52
}
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