• 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/tabs/tab-item.directive.ts
1
import { ContentChild, Directive, EventEmitter, Input, Output, TemplateRef, ViewChild, booleanAttribute } from '@angular/core';
2
import { Direction, IgxSlideComponentBase } from '../carousel/carousel-base';
3
import { IgxTabHeaderBase, IgxTabItemBase, IgxTabContentBase, IgxTabsBase } from './tabs.base';
4

5
@Directive()
6
export abstract class IgxTabItemDirective implements IgxTabItemBase, IgxSlideComponentBase {
2✔
7

8
    /** @hidden */
9
    @ContentChild(IgxTabHeaderBase)
10
    public headerComponent: IgxTabHeaderBase;
11

12
    /** @hidden */
13
    @ContentChild(IgxTabContentBase)
14
    public panelComponent: IgxTabContentBase;
15

16
    /** @hidden */
17
    @ViewChild('headerTemplate', { static: true })
18
    public headerTemplate: TemplateRef<any>;
19

20
    /** @hidden */
21
    @ViewChild('panelTemplate', { static: true })
22
    public panelTemplate: TemplateRef<any>;
23

24
    /**
25
     * Output to enable support for two-way binding on [(selected)]
26
     */
27
    @Output()
UNCOV
28
    public selectedChange = new EventEmitter<boolean>();
×
29

30
    /**
31
     * Disables the item.
32
     */
33
    @Input({ transform: booleanAttribute })
UNCOV
34
    public disabled = false;
×
35

36
    /** @hidden */
UNCOV
37
    public direction = Direction.NONE;
×
38
    /** @hidden */
39
    public previous: boolean;
40

UNCOV
41
    private _selected = false;
×
42

43
    /**
44
     * Gets/Sets whether an item is selected.
45
     */
46
    @Input({ transform: booleanAttribute })
47
    public get selected(): boolean {
UNCOV
48
        return this._selected;
×
49
    }
50

51
    public set selected(value: boolean) {
UNCOV
52
        if (this._selected !== value) {
×
UNCOV
53
            this._selected = value;
×
UNCOV
54
            this.tabs.selectTab(this, this._selected);
×
UNCOV
55
            this.selectedChange.emit(this._selected);
×
56
        }
57
    }
58

59
    /** @hidden */
UNCOV
60
    constructor(private tabs: IgxTabsBase) {
×
61
    }
62
}
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