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

30 lines
834 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';
/** Workaround for https://github.com/angular/angular/issues/17849 */
export const _MdTable = CdkTable;
/**
* 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,
})
export class MdTable<T> extends _MdTable<T> { }