Files
angular__angular/src/lib/table/table.ts
T

32 lines
887 B
TypeScript
Raw Normal View History

/**
* @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';
import {CDK_TABLE_TEMPLATE, CdkTable} from '@angular/cdk/table';
/** Workaround for https://github.com/angular/angular/issues/17849 */
2017-09-28 13:45:03 -07:00
export const _MatTable = CdkTable;
/**
* Wrapper for the CdkTable with Material design styles.
*/
@Component({
moduleId: module.id,
2017-09-28 13:45:03 -07:00
selector: 'mat-table',
exportAs: 'matTable',
template: CDK_TABLE_TEMPLATE,
styleUrls: ['table.css'],
host: {
'class': 'mat-table',
},
encapsulation: ViewEncapsulation.None,
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
})
2017-09-28 13:45:03 -07:00
export class MatTable<T> extends _MatTable<T> { }