2017-06-29 10:23:56 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* 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-06-29 14:21:20 -07:00
|
|
|
import {CDK_TABLE_TEMPLATE, CdkTable} from '@angular/cdk';
|
|
|
|
|
|
|
|
|
|
/** Workaround for https://github.com/angular/angular/issues/17849 */
|
|
|
|
|
export const _MdTable = CdkTable;
|
2017-06-29 10:23:56 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Wrapper for the CdkTable with Material design styles.
|
|
|
|
|
*/
|
|
|
|
|
@Component({
|
|
|
|
|
moduleId: module.id,
|
|
|
|
|
selector: 'md-table, mat-table',
|
|
|
|
|
template: CDK_TABLE_TEMPLATE,
|
|
|
|
|
styleUrls: ['table.css'],
|
|
|
|
|
host: {
|
|
|
|
|
'class': 'mat-table',
|
|
|
|
|
},
|
|
|
|
|
encapsulation: ViewEncapsulation.None,
|
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
|
|
})
|
2017-06-29 14:21:20 -07:00
|
|
|
export class MdTable<T> extends _MdTable<T> { }
|