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

IgniteUI / igniteui-angular / 13548823408

26 Feb 2025 04:36PM CUT coverage: 91.555% (-0.04%) from 91.599%
13548823408

Pull #15223

github

web-flow
Merge 3ac8087aa into 786685675
Pull Request #15223: fix(pivot-grid): added createRow method for grid based events - 19.0

12997 of 15250 branches covered (85.23%)

0 of 18 new or added lines in 2 files covered. (0.0%)

135 existing lines in 23 files now uncovered.

26344 of 28774 relevant lines covered (91.55%)

34046.37 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) {
UNCOV
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