/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/stepper/step-header.ts
25 строк
602 B
Kristiyan Kostadinov
fix(multiple): remove empty constructors (#33048)
08 апр 2026, 22:21
Не верифицирован
08 апр 2026, 22:21
ce4c2c0
Код
Авторство
О чём код?
/** * @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 {Directive, ElementRef, inject} from '@angular/core'; import {FocusableOption} from '../a11y'; @Directive({ selector: '[cdkStepHeader]', host: { 'role': 'tab', }, }) export class CdkStepHeader implements FocusableOption { _elementRef = inject<ElementRef<HTMLElement>>(ElementRef); /** Focuses the step header. */ focus() { this._elementRef.nativeElement.focus(); } }