/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/sort/sort-errors.ts
27 строк
887 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 */ /** @docs-private */ export function getSortDuplicateSortableIdError(id: string): Error { return Error(`Cannot have two MatSortables with the same id (${id}).`); } /** @docs-private */ export function getSortHeaderNotContainedWithinSortError(): Error { return Error(`MatSortHeader must be placed within a parent element with the MatSort directive.`); } /** @docs-private */ export function getSortHeaderMissingIdError(): Error { return Error(`MatSortHeader must be provided with a unique id.`); } /** @docs-private */ export function getSortInvalidDirectionError(direction: string): Error { return Error(`${direction} is not a valid sort direction ('asc' or 'desc').`); }