Skip to content

Commit 8eed898

Browse files
author
Konstantin Dinev
committed
chore(*): fixing demos used for test
1 parent adf58e6 commit 8eed898

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/app/grid-filtering/grid-filtering.sample.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, ViewChild, OnInit, HostBinding } from '@angular/core';
22
import { FormsModule } from '@angular/forms';
3-
import { FilterMode, FilteringExpressionsTree, FilteringLogic, FormattedValuesFilteringStrategy, GridSelectionMode, IChangeCheckboxEventArgs, IGX_GRID_DIRECTIVES, IgxButtonGroupComponent, IgxCheckboxComponent, IgxGridComponent, IgxIconComponent, IgxStringFilteringOperand } from 'igniteui-angular';
3+
import { FilterMode, FilteringExpressionsTree, FilteringLogic, FormattedValuesFilteringStrategy, GridSelectionMode, IChangeCheckboxEventArgs, IGX_GRID_DIRECTIVES, IgxButtonDirective, IgxButtonGroupComponent, IgxCheckboxComponent, IgxGridComponent, IgxIconComponent, IgxStringFilteringOperand } from 'igniteui-angular';
44
import { SAMPLE_DATA } from '../shared/sample-data';
55

66

@@ -9,7 +9,14 @@ import { SAMPLE_DATA } from '../shared/sample-data';
99
selector: 'app-grid-filtering-sample',
1010
styleUrls: ['grid-filtering.sample.scss'],
1111
templateUrl: 'grid-filtering.sample.html',
12-
imports: [FormsModule, IGX_GRID_DIRECTIVES, IgxCheckboxComponent, IgxButtonGroupComponent, IgxIconComponent]
12+
imports: [
13+
FormsModule,
14+
IGX_GRID_DIRECTIVES,
15+
IgxCheckboxComponent,
16+
IgxButtonGroupComponent,
17+
IgxIconComponent,
18+
IgxButtonDirective
19+
]
1320
})
1421
export class GridFilteringComponent implements OnInit {
1522

src/app/grid-percentage-columns/grid-percantge-widths.sample.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="wrapper">
22
<div class="sample-content">
33
<div class="sample-column">
4-
<igx-grid [data]="data" [locale]="locale" [allowFiltering]="true" [moving]="true" [filterMode]="'excelStyleFilter'" width="420px" height="600px">
4+
<igx-grid [data]="data" [locale]="locale" [allowFiltering]="true" [moving]="true" [filterMode]="'excelStyleFilter'" width="100%" height="600px">
55
<igx-column field="ProductName" [pinned]="false" header="Product Name" width="20%" [dataType]="'string'" [sortable]="true" [hasSummary]="false" [editable]="true" [filterable]="true" >
66
</igx-column>
77
<igx-column field="UnitsInStock" [pinned]="false" header="Units In Stock" width="20%" dataType="currency" [pipeArgs]="pipeArgs" [sortable]="true" [hasSummary]="true" [editable]="true" [filterable]="true" >
@@ -11,10 +11,10 @@
1111
{{val | date:'dd/MM/yyyy'}}
1212
</ng-template>
1313
</igx-column>
14-
<igx-column field="Discontinued" header="Discontinued" width="10%" [dataType]="'boolean'" minWidth="20px"
14+
<igx-column field="Discontinued" header="Discontinued" width="10%" [dataType]="'boolean'" minWidth="20px"
1515
[sortable]="false" [hasSummary]="false" [editable]="true" [filterable]="false">
1616
</igx-column>
17-
<igx-column field="ReorderLevel" header="Reorder Level" dataType="percent" [pipeArgs]="pipeArgs" [hasSummary]="true" width="10%" [sortable]="false" [editable]="true" >
17+
<igx-column field="ReorderLevel" header="Reorder Level" dataType="percent" [pipeArgs]="pipeArgs" [hasSummary]="true" width="10%" [sortable]="false" [editable]="true" >
1818
</igx-column>
1919
<igx-column field="SupplierID" header="SupplierID" width="10%" [sortable]="false" [editable]="true">
2020
</igx-column>

0 commit comments

Comments
 (0)