-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathgrid-multi-row-layout.component.ts
More file actions
34 lines (32 loc) · 1.5 KB
/
grid-multi-row-layout.component.ts
File metadata and controls
34 lines (32 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Component, ViewEncapsulation } from '@angular/core';
import { DefaultSortingStrategy, SortingDirection } from 'igniteui-angular/core';
import { IgxGridComponent } from 'igniteui-angular/grids/grid';
import { IgxColumnComponent, IgxColumnLayoutComponent, IgxGridMRLNavigationService, IgxGridToolbarActionsComponent, IgxGridToolbarComponent, IgxGridToolbarHidingComponent, IgxGridToolbarPinningComponent } from 'igniteui-angular/grids/core';
import { DATA } from '../../data/customers';
import { IgxPreventDocumentScrollDirective } from '../../directives/prevent-scroll.directive';
@Component({
encapsulation: ViewEncapsulation.None,
selector: 'app-grid-multi-row-layout-sample',
styleUrls: ['./grid-multi-row-layout.component.scss'],
templateUrl: './grid-multi-row-layout.component.html',
providers: [IgxGridMRLNavigationService],
imports: [IgxGridComponent, IgxPreventDocumentScrollDirective, IgxGridToolbarComponent, IgxGridToolbarActionsComponent, IgxGridToolbarHidingComponent, IgxGridToolbarPinningComponent, IgxColumnLayoutComponent, IgxColumnComponent]
})
export class GridMultiRowLayoutComponent {
public sourceData = DATA;
public group = [
{
dir: SortingDirection.Asc,
fieldName: 'Country',
ignoreCase: false,
strategy: DefaultSortingStrategy.instance()
}
];
public sort = [
{
dir: SortingDirection.Desc,
fieldName: 'CompanyName',
ignoreCase: true
}
];
}