/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/core/option/option-parent.ts
28 строк
783 B
Kristiyan Kostadinov
refactor(material/core): allow option parent's disableRipple to be a signal
30 сен 2024, 20:43
30 сен 2024, 20:43
030cdd6
Код
Авторство
О чём код?
/** * @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, Signal} from '@angular/core'; /** * Describes a parent component that manages a list of options. * Contains properties that the options can inherit. * @docs-private */ export interface MatOptionParentComponent { disableRipple?: boolean | Signal<boolean>; multiple?: boolean; inertGroups?: boolean; hideSingleSelectionIndicator?: boolean; } /** * Injection token used to provide the parent component to options. */ export const MAT_OPTION_PARENT_COMPONENT = new InjectionToken<MatOptionParentComponent>( 'MAT_OPTION_PARENT_COMPONENT', );