• 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

7.14
/projects/igniteui-angular/src/lib/grids/toolbar/grid-toolbar.component.ts
1
import {
2
    Component,
3
    ContentChild,
4
    ElementRef,
5
    HostBinding,
6
    Inject,
7
    Input,
8
    OnDestroy,
9
    booleanAttribute
10
} from '@angular/core';
11
import { Subscription } from 'rxjs';
12
import { IgxIconService } from '../../icon/icon.service';
13
import { pinLeft, unpinLeft } from '@igniteui/material-icons-extended';
14
import { IgxGridToolbarActionsComponent } from './common';
15
import { GridServiceType, GridType, IGX_GRID_SERVICE_BASE } from '../common/grid.interface';
16
import { IgxToolbarToken } from './token';
17
import { IgxLinearProgressBarComponent } from '../../progressbar/progressbar.component';
18
import { IgxGridToolbarAdvancedFilteringComponent } from './grid-toolbar-advanced-filtering.component';
19
import { NgTemplateOutlet } from '@angular/common';
20

21
/* blazorElement */
22
/* mustUseNGParentAnchor */
23
/* wcElementTag: igc-grid-toolbar */
24
/* blazorIndirectRender */
25
/* singleInstanceIdentifier */
26
/* contentParent: GridBaseDirective */
27
/* contentParent: RowIsland */
28
/* contentParent: HierarchicalGrid */
29
/* jsonAPIManageItemInMarkup */
30
/**
31
 * Provides a context-aware container component for UI operations for the grid components.
32
 *
33
 * @igxModule IgxGridToolbarModule
34
 * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxPivotGridComponent
35
 *
36
 */
37
@Component({
38
    selector: 'igx-grid-toolbar',
39
    templateUrl: './grid-toolbar.component.html',
40
    providers: [{ provide: IgxToolbarToken, useExisting: IgxGridToolbarComponent }],
41
    imports: [IgxGridToolbarActionsComponent, IgxGridToolbarAdvancedFilteringComponent, NgTemplateOutlet, IgxLinearProgressBarComponent]
42
})
43
export class IgxGridToolbarComponent implements OnDestroy {
3✔
44

45
    /**
46
     * When enabled, shows the indeterminate progress bar.
47
     *
48
     * @remarks
49
     * By default this will be toggled, when the default exporter component is present
50
     * and an exporting is in progress.
51
     */
52
    @Input({ transform: booleanAttribute })
UNCOV
53
    public showProgress = false;
×
54

55
    /**
56
     * Gets/sets the grid component for the toolbar component.
57
     *
58
     * @deprecated since version 17.1.0. No longer required to be set for the Hierarchical Grid child grid template
59
     *
60
     * @remarks
61
     * Usually you should not set this property in the context of the default grid/tree grid.
62
     * The only grids that demands this to be set are the hierarchical child grids. For additional
63
     * information check the toolbar topic.
64
     */
65
    @Input()
66
    public get grid() {
UNCOV
67
        if (this._grid) {
×
68
            return this._grid;
×
69
        }
UNCOV
70
        return this.api.grid;
×
71
    }
72

73
    public set grid(value: GridType) {
74
        this._grid = value;
×
75
    }
76

77
    /** Returns the native DOM element of the toolbar component */
78
    public get nativeElement() {
UNCOV
79
        return this.element.nativeElement;
×
80
    }
81

82
    /**
83
     * @hidden
84
     * @internal
85
     */
86
    @ContentChild(IgxGridToolbarActionsComponent)
87
    public hasActions: IgxGridToolbarActionsComponent;
88

89
    /**
90
     * @hidden
91
     * @internal
92
     */
93
    @HostBinding('class.igx-grid-toolbar')
UNCOV
94
    public defaultStyle = true;
×
95

96
    protected _grid: GridType;
97
    protected sub: Subscription;
98

99
    constructor(
UNCOV
100
        @Inject(IGX_GRID_SERVICE_BASE) private api: GridServiceType,
×
UNCOV
101
        private iconService: IgxIconService,
×
UNCOV
102
        private element: ElementRef<HTMLElement>
×
103
    ) {
UNCOV
104
        this.iconService.addSvgIconFromText(pinLeft.name, pinLeft.value, 'imx-icons');
×
UNCOV
105
        this.iconService.addSvgIconFromText(unpinLeft.name, unpinLeft.value, 'imx-icons');
×
106
    }
107

108
    /** @hidden @internal */
109
    public ngOnDestroy() {
UNCOV
110
        this.sub?.unsubscribe();
×
111
    }
112
}
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