2017-06-29 10:23:56 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
2017-10-06 14:31:05 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2017-06-29 10:23:56 -07:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
|
2017-07-25 16:15:24 -07:00
|
|
|
import {CDK_TABLE_TEMPLATE, CdkTable} from '@angular/cdk/table';
|
2017-06-29 14:21:20 -07:00
|
|
|
|
|
|
|
|
/** Workaround for https://github.com/angular/angular/issues/17849 */
|
2017-09-28 13:45:03 -07:00
|
|
|
export const _MatTable = CdkTable;
|
2017-06-29 10:23:56 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Wrapper for the CdkTable with Material design styles.
|
|
|
|
|
*/
|
|
|
|
|
@Component({
|
|
|
|
|
moduleId: module.id,
|
2017-09-28 13:45:03 -07:00
|
|
|
selector: 'mat-table',
|
2017-10-04 23:52:52 +02:00
|
|
|
exportAs: 'matTable',
|
2017-06-29 10:23:56 -07:00
|
|
|
template: CDK_TABLE_TEMPLATE,
|
|
|
|
|
styleUrls: ['table.css'],
|
|
|
|
|
host: {
|
|
|
|
|
'class': 'mat-table',
|
|
|
|
|
},
|
|
|
|
|
encapsulation: ViewEncapsulation.None,
|
2017-09-20 15:58:55 -07:00
|
|
|
preserveWhitespaces: false,
|
2017-06-29 10:23:56 -07:00
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
|
|
})
|
2017-09-28 13:45:03 -07:00
|
|
|
export class MatTable<T> extends _MatTable<T> { }
|