/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/table/tokens.ts
32 строки
1018 B
Naji
docs: replace angular.io links with angular.dev (#29734)
19 сен 2024, 13:57
Не верифицирован
19 сен 2024, 13:57
5782834
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC 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.dev/license */ import {InjectionToken} from '@angular/core'; /** * Used to provide a table to some of the sub-components without causing a circular dependency. * @docs-private */ export const CDK_TABLE = new InjectionToken<any>('CDK_TABLE'); /** Configurable options for `CdkTextColumn`. */ export interface TextColumnOptions<T> { /** * Default function that provides the header text based on the column name if a header * text is not provided. */ defaultHeaderTextTransform?: (name: string) => string; /** Default data accessor to use if one is not provided. */ defaultDataAccessor?: (data: T, name: string) => string; } /** Injection token that can be used to specify the text column options. */ export const TEXT_COLUMN_OPTIONS = new InjectionToken<TextColumnOptions<any>>( 'text-column-options', );