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

IgniteUI / igniteui-angular / 16193550997

10 Jul 2025 11:12AM UTC coverage: 4.657% (-87.0%) from 91.64%
16193550997

Pull #16028

github

web-flow
Merge f7a9963b8 into 87246e3ce
Pull Request #16028: fix(radio-group): dynamically added radio buttons do not initialize

178 of 15764 branches covered (1.13%)

18 of 19 new or added lines in 2 files covered. (94.74%)

25721 existing lines in 324 files now uncovered.

1377 of 29570 relevant lines covered (4.66%)

0.53 hits per line

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

14.29
/projects/igniteui-angular/src/lib/directives/button/button-base.ts
1
import { Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, booleanAttribute } from '@angular/core';
2
import { mkenum } from '../../core/utils';
3

4
export const IgxBaseButtonType = /*@__PURE__*/mkenum({
3✔
5
    Flat: 'flat',
6
    Contained: 'contained',
7
    Outlined: 'outlined'
8
});
9

10
@Directive()
11
export abstract class IgxButtonBaseDirective {
3✔
12
    /**
13
     * Emitted when the button is clicked.
14
     */
15
    @Output()
UNCOV
16
    public buttonClick = new EventEmitter<any>();
×
17

18
    /**
19
     * Sets/gets the `role` attribute.
20
     *
21
     * @example
22
     * ```typescript
23
     * this.button.role = 'navbutton';
24
     * let buttonRole = this.button.role;
25
     * ```
26
     */
27
    @HostBinding('attr.role')
UNCOV
28
    public role = 'button';
×
29

30
    /**
31
     * @hidden
32
     * @internal
33
     */
34
    @HostListener('click', ['$event'])
35
    public onClick(ev: MouseEvent) {
UNCOV
36
        this.buttonClick.emit(ev);
×
UNCOV
37
        this.focused = false;
×
38
    }
39

40
    /**
41
     * @hidden
42
     * @internal
43
     */
44
    @HostListener('blur')
45
    protected onBlur() {
UNCOV
46
        this.focused = false;
×
47
    }
48

49
    /**
50
     * Sets/gets whether the button component is on focus.
51
     * Default value is `false`.
52
     * ```typescript
53
     * this.button.focus = true;
54
     * ```
55
     * ```typescript
56
     * let isFocused =  this.button.focused;
57
     * ```
58
     */
59
    @HostBinding('class.igx-button--focused')
UNCOV
60
    protected focused = false;
×
61

62
    /**
63
      * Enables/disables the button.
64
      *
65
      * @example
66
      * ```html
67
      * <button igxButton="fab" disabled></button>
68
      * ```
69
      */
70
    @Input({ transform: booleanAttribute })
71
    @HostBinding('class.igx-button--disabled')
UNCOV
72
    public disabled = false;
×
73

74
    /**
75
     * @hidden
76
     * @internal
77
     */
78
    @HostBinding('attr.disabled')
79
    public get disabledAttribute() {
UNCOV
80
        return this.disabled || null;
×
81
    }
82

UNCOV
83
    constructor(public element: ElementRef) { }
×
84

85
    /**
86
     * @hidden
87
     * @internal
88
     */
89
    @HostListener('keyup', ['$event'])
90
    protected updateOnKeyUp(event: KeyboardEvent) {
91
        if (event.key === "Tab") {
×
92
            this.focused = true;
×
93
        }
94
    }
95

96
    /**
97
     * Returns the underlying DOM element.
98
     */
99
    public get nativeElement() {
UNCOV
100
        return this.element.nativeElement;
×
101
    }
102
}
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

© 2026 Coveralls, Inc