Skip to content

Commit c94ce33

Browse files
committed
fix lint
1 parent 9213ef7 commit c94ce33

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/cdk/table/text-column.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
import {
10+
ChangeDetectionStrategy,
1011
Component,
1112
Inject,
1213
InjectionToken,
@@ -15,9 +16,9 @@ import {
1516
OnInit,
1617
Optional,
1718
ViewChild,
18-
ChangeDetectionStrategy,
1919
ViewEncapsulation
2020
} from '@angular/core';
21+
2122
import {CdkColumnDef} from './cell';
2223
import {CdkTable} from './table';
2324
import {getTableTextColumnMissingParentTableError} from './table-errors';
@@ -36,7 +37,7 @@ export interface TextColumnOptions<T> {
3637

3738
/** Injection token that can be used to specify the text column options. */
3839
export const TEXT_COLUMN_OPTIONS =
39-
new InjectionToken<TextColumnOptions<any>>('text-column-options');
40+
new InjectionToken<TextColumnOptions<any>>('text-column-options');
4041

4142
/**
4243
* Column that simply shows text content for the header and row cells. Assumes that the table
@@ -72,7 +73,9 @@ export const TEXT_COLUMN_OPTIONS =
7273
export class CdkTextColumn<T> implements OnDestroy, OnInit {
7374
/** Column name that should be used to reference this column. */
7475
@Input()
75-
get name(): string {return this._name;}
76+
get name(): string {
77+
return this._name;
78+
}
7679
set name(name: string) {
7780
this._name = name;
7881
this.columnDef.name = name;
@@ -94,12 +97,13 @@ export class CdkTextColumn<T> implements OnDestroy, OnInit {
9497
@Input() dataAccessor: (data: T, name: string) => string;
9598

9699
/** Alignment of the cell values. */
97-
@Input() justify: 'start' | 'end' = 'start';
100+
@Input() justify: 'start'|'end' = 'start';
98101

99102
@ViewChild(CdkColumnDef) columnDef: CdkColumnDef;
100103

101-
constructor(@Optional() private table: CdkTable<T>,
102-
@Optional() @Inject(TEXT_COLUMN_OPTIONS) private options: TextColumnOptions<T>) {
104+
constructor(
105+
@Optional() private table: CdkTable<T>,
106+
@Optional() @Inject(TEXT_COLUMN_OPTIONS) private options: TextColumnOptions<T>) {
103107
this.options = options || {};
104108
}
105109

@@ -109,8 +113,8 @@ export class CdkTextColumn<T> implements OnDestroy, OnInit {
109113
}
110114

111115
if (!this.dataAccessor) {
112-
this.dataAccessor = this.options.defaultDataAccessor ||
113-
((data: T, name: string) => (data as any)[name]);
116+
this.dataAccessor =
117+
this.options.defaultDataAccessor || ((data: T, name: string) => (data as any)[name]);
114118
}
115119

116120
if (this.table) {

0 commit comments

Comments
 (0)