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

IgniteUI / igniteui-angular / 12887118938

21 Jan 2025 12:38PM CUT coverage: 91.638% (+0.004%) from 91.634%
12887118938

Pull #15275

github

web-flow
Merge fbc3037d9 into 32a5e7724
Pull Request #15275: fix(input-group): fix helper text spacing in material theme

12972 of 15197 branches covered (85.36%)

26323 of 28725 relevant lines covered (91.64%)

34164.86 hits per line

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

62.5
/projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.ts
1
import { Component, Input, TemplateRef, ViewChild, Output, EventEmitter, ElementRef, booleanAttribute } from '@angular/core';
2
import { IgxIconComponent } from '../../icon/icon.component';
3
import { IgxRippleDirective } from '../../directives/ripple/ripple.directive';
4
import { NgIf } from '@angular/common';
5
import { IgxIconButtonDirective } from '../../directives/button/icon-button.directive';
6

7
/* blazorElement */
8
/* wcElementTag: igc-grid-action-button */
9
/* blazorIndirectRender */
10
@Component({
11
    selector: 'igx-grid-action-button',
12
    templateUrl: 'grid-action-button.component.html',
13
    imports: [NgIf, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
14
})
15
export class IgxGridActionButtonComponent {
2✔
16

17
    /* blazorSuppress */
18
    @ViewChild('container')
19
    public container: ElementRef;
20

21
    /* blazorSuppress */
22
    /**
23
     * Event emitted when action button is clicked.
24
     *
25
     * @example
26
     * ```html
27
     *  <igx-grid-action-button (actionClick)="startEdit($event)"></igx-grid-action-button>
28
     * ```
29
     */
30
    @Output()
31
    public actionClick = new EventEmitter<Event>();
85✔
32

33
    /**
34
     * Reference to the current template.
35
     *
36
     * @hidden
37
     * @internal
38
     */
39
    @ViewChild('menuItemTemplate')
40
    public templateRef: TemplateRef<any>;
41

42
    /**
43
     * Whether button action is rendered in menu and should container text label.
44
     */
45
    @Input({ transform: booleanAttribute })
46
    public asMenuItem = false;
85✔
47

48
    /**
49
     * Name of the icon to display in the button.
50
     */
51
    @Input()
52
    public iconName: string;
53

54
    /**
55
     * Additional Menu item container element classes.
56
     */
57
    @Input()
58
    public classNames: string;
59

60
    /** @hidden @internal */
61
    public get containerClass(): string {
62
        return 'igx-action-strip__menu-button ' + (this.classNames || '');
55✔
63
    }
64

65
    /**
66
     * The name of the icon set. Used in case the icon is from a different icon set.
67
     */
68
    @Input()
69
    public iconSet: string;
70

71
    /**
72
     * The text of the label.
73
     */
74
    @Input()
75
    public labelText: string;
76

77
    /**
78
     * @hidden
79
     * @internal
80
     */
81
    public handleClick(event) {
82
        this.actionClick.emit(event);
10✔
83
    }
84

85
    /**
86
     * @hidden @internal
87
     */
88
    public preventEvent(event) {
89
        if (event) {
×
90
            event.stopPropagation();
×
91
            event.preventDefault();
×
92
        }
93
    }
94
}
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