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

IgniteUI / igniteui-angular / 28358286454

29 Jun 2026 08:17AM UTC coverage: 90.127% (-0.05%) from 90.174%
28358286454

Pull #17246

github

web-flow
Merge 21687d939 into 07bdcd752
Pull Request #17246: fix(pivot-grid): fix date format based on the localization

14921 of 17392 branches covered (85.79%)

Branch coverage included in aggregate %.

29 of 32 new or added lines in 4 files covered. (90.63%)

735 existing lines in 76 files now uncovered.

29992 of 32441 relevant lines covered (92.45%)

34632.46 hits per line

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

81.25
/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar.component.ts
1
import { Component, ContentChild, ElementRef, HostBinding, Input, OnDestroy, booleanAttribute, inject, ChangeDetectionStrategy } from '@angular/core';
2
import { Subscription } from 'rxjs';
3
import { pinLeft, unpinLeft } from '@igniteui/material-icons-extended';
4
import { IgxGridToolbarActionsComponent } from './common';
5
import { GridServiceType, GridType, IGX_GRID_SERVICE_BASE } from '../common/grid.interface';
6
import { IgxToolbarToken } from './token';
7
import { IgxGridToolbarAdvancedFilteringComponent } from './grid-toolbar-advanced-filtering.component';
8
import { NgTemplateOutlet } from '@angular/common';
9
import { IgxLinearProgressBarComponent } from 'igniteui-angular/progressbar';
10
import { IgxIconService } from 'igniteui-angular/icon';
11

12
/* blazorElement */
13
/* mustUseNGParentAnchor */
14
/* wcElementTag: igc-grid-toolbar */
15
/* blazorIndirectRender */
16
/* singleInstanceIdentifier */
17
/* contentParent: GridBaseDirective */
18
/* contentParent: RowIsland */
19
/* contentParent: HierarchicalGrid */
20
/* jsonAPIManageItemInMarkup */
21
/**
22
 * Provides a context-aware container component for UI operations for the grid components.
23
 *
24
 * @igxModule IgxGridToolbarModule
25
 * @igxParent IgxGridComponent, IgxHierarchicalGridComponent, IgxTreeGridComponent, IgxPivotGridComponent,
26
 *
27
 */
28
@Component({
29
    selector: 'igx-grid-toolbar',
30
    templateUrl: './grid-toolbar.component.html',
31
    providers: [{ provide: IgxToolbarToken, useExisting: IgxGridToolbarComponent }],
32
    changeDetection: ChangeDetectionStrategy.Eager,
33
    imports: [IgxGridToolbarActionsComponent, IgxGridToolbarAdvancedFilteringComponent, NgTemplateOutlet, IgxLinearProgressBarComponent]
34
})
35
export class IgxGridToolbarComponent implements OnDestroy {
3✔
36
    private api = inject<GridServiceType>(IGX_GRID_SERVICE_BASE);
182✔
37
    private iconService = inject(IgxIconService);
182✔
38
    private element = inject<ElementRef<HTMLElement>>(ElementRef);
182✔
39

40

41
    /**
42
     * When enabled, shows the indeterminate progress bar.
43
     *
44
     * @remarks
45
     * By default this will be toggled, when the default exporter component is present
46
     * and an exporting is in progress.
47
     */
48
    @Input({ transform: booleanAttribute })
49
    public showProgress = false;
182✔
50

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

69
    public set grid(value: GridType) {
UNCOV
70
        this._grid = value;
×
71
    }
72

73
    /** Returns the native DOM element of the toolbar component */
74
    public get nativeElement() {
75
        return this.element.nativeElement;
286✔
76
    }
77

78
    /**
79
     * @hidden
80
     * @internal
81
     */
82
    @ContentChild(IgxGridToolbarActionsComponent)
83
    public hasActions: IgxGridToolbarActionsComponent;
84

85
    /**
86
     * @hidden
87
     * @internal
88
     */
89
    @HostBinding('class.igx-grid-toolbar')
90
    public defaultStyle = true;
182✔
91

92
    /**
93
     * @hidden
94
     * @internal
95
     */
96
    @HostBinding('attr.role')
97
    public role = 'presentation';
182✔
98

99
    protected _grid: GridType;
100
    protected sub: Subscription;
101

102
    constructor() {
103
        this.iconService.addSvgIconFromText(pinLeft.name, pinLeft.value, 'imx-icons', true);
182✔
104
        this.iconService.addSvgIconFromText(unpinLeft.name, unpinLeft.value, 'imx-icons', true);
182✔
105
    }
106

107
    /** @hidden @internal */
108
    public ngOnDestroy() {
109
        this.sub?.unsubscribe();
161✔
110
    }
111
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc