/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/list/action-list.ts
31 строка
1 KB
Kristiyan Kostadinov
refactor(material/list): remove explicit change detection
09 май 2026, 06:37
09 май 2026, 06:37
515b351
Код
Авторство
О чём код?
/** * @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 {Component, ViewEncapsulation} from '@angular/core'; import {MatListBase} from './list-base'; @Component({ selector: 'mat-action-list', exportAs: 'matActionList', template: '<ng-content></ng-content>', host: { 'class': 'mat-mdc-action-list mat-mdc-list-base mdc-list', 'role': 'group', }, styleUrl: 'list.css', encapsulation: ViewEncapsulation.None, providers: [{provide: MatListBase, useExisting: MatActionList}], }) export class MatActionList extends MatListBase { // An navigation list is considered interactive, but does not extend the interactive list // base class. We do this because as per MDC, items of interactive lists are only reachable // through keyboard shortcuts. We want all items for the navigation list to be reachable // through tab key as we do not intend to provide any special accessibility treatment. The // accessibility treatment depends on how the end-user will interact with it. override _isNonInteractive = false; }