/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material-experimental/selection/select-all.ts
27 строк
1 KB
Kristiyan Kostadinov
refactor(multiple): remove standalone flag from experimental packages
17 окт 2024, 17:40
17 окт 2024, 17:40
0c0b122
Код
Авторство
О чём код?
/** * @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 {CdkSelectAll} from '@angular/cdk-experimental/selection'; import {Directive} from '@angular/core'; /** * Makes the element a select-all toggle. * * Must be used within a parent `MatSelection` directive. It toggles the selection states * of all the selection toggles connected with the `MatSelection` directive. * If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive * automatically connects it with the select-all state provided by the `MatSelection` directive. If * not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state, * and `toggle()` to change the selection state. */ @Directive({ selector: '[matSelectAll]', exportAs: 'matSelectAll', providers: [{provide: CdkSelectAll, useExisting: MatSelectAll}], }) export class MatSelectAll<T> extends CdkSelectAll<T> {}