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

IgniteUI / igniteui-angular-wrappers / 4427504397

pending completion
4427504397

push

github

GitHub
Update README.md

281 of 305 branches covered (92.13%)

Branch coverage included in aggregate %.

668 of 713 relevant lines covered (93.69%)

219.79 hits per line

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

84.21
/projects/igniteui-angular-wrappers/src/lib/igpivotdataselector/igpivotdataselector.component.ts
1
import { Component, ElementRef, IterableDiffers, KeyValueDiffers, ChangeDetectorRef, Input, Renderer2, OnInit } from '@angular/core';
2
import { IgControlBase } from '../igcontrolbase/igcontrolbase';
3

4
@Component({
5
    selector: 'ig-pivot-data-selector',
6
    template: '<ng-content></ng-content>',
7
    inputs: ['widgetId', 'options', 'changeDetectionInterval', 'disabled', 'create', 'width', 'height', 'dataSource', 'dataSourceOptions', 'deferUpdate', 'dragAndDropSettings', 'dropDownParent', 'disableRowsDropArea', 'disableColumnsDropArea', 'disableMeasuresDropArea', 'disableFiltersDropArea', 'customMoveValidation'],
8
    outputs: ['dataSelectorRendered', 'dataSourceInitialized', 'dataSourceUpdated', 'deferUpdateChanged', 'dragStart', 'drag', 'dragStop', 'metadataDropping', 'metadataDropped', 'metadataRemoving', 'metadataRemoved', 'filterDropDownOpening', 'filterDropDownOpened', 'filterMembersLoaded', 'filterDropDownOk', 'filterDropDownClosing', 'filterDropDownClosed']
9
})
10
export class IgPivotDataSelectorComponent extends IgControlBase<IgPivotDataSelector> implements OnInit {
1✔
11
    constructor(el: ElementRef, renderer: Renderer2, differs: IterableDiffers, kvalDiffers: KeyValueDiffers, cdr: ChangeDetectorRef) {
12
      super(el, renderer, differs, kvalDiffers, cdr);
2✔
13
    }
14

15
    @Input()
16
    public set dataSource(value: any) {
17
            this._dataSource = value;
1✔
18
            const widget = jQuery(this._el).data(this._widgetName);
1✔
19
            if (widget) {
1!
20
            jQuery(this._el)[this._widgetName]('option', 'dataSource', this._dataSource);
×
21
        }
22
    }
23

24

25

26
    private _dataSource: any;
27
    public option(): void { return; }
×
28
    ngOnInit() {
29
        if (this._dataSource === null || this._dataSource === undefined) {
2✔
30
            this._dataSource = this.options.dataSource;
1✔
31
        }
32
        if (!this.options.dataSource && this._dataSource) {
2✔
33
            this.options.dataSource = this._dataSource;
1✔
34
        }
35
        super.ngOnInit();
2✔
36
    }
37

38
    /**
39
     * Updates the data source.
40
     */
41
    /* istanbul ignore next */
42
    public update(): void { return; }
43
    /**
44
     * Destroy is part of the jQuery UI widget API and does the following:
45
     *                 1. Remove custom CSS classes that were added.
46
     *                 2. Unwrap any wrapping elements such as scrolling divs and other containers.
47
     *                 3. Unbind all events that were bound.
48
     */
49
    /* istanbul ignore next */
50
    public destroy(): void { return; }}
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