sass-references/angular-material/material/tree/toggle.ts

21 lines
646 B
TypeScript
Raw Permalink Normal View History

2024-12-06 10:42:08 +08:00
/**
* @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 {CdkTreeNodeToggle} from '@angular/cdk/tree';
import {Directive} from '@angular/core';
/**
* Wrapper for the CdkTree's toggle with Material design styles.
*/
@Directive({
selector: '[matTreeNodeToggle]',
providers: [{provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle}],
inputs: [{name: 'recursive', alias: 'matTreeNodeToggleRecursive'}],
})
export class MatTreeNodeToggle<T, K = T> extends CdkTreeNodeToggle<T, K> {}