/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/stepper/stepper-button.ts
41 строка
1 KB
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, Input, inject} from '@angular/core'; import {CdkStepper} from './stepper'; /** Button that moves to the next step in a stepper workflow. */ @Directive({ selector: 'button[cdkStepperNext]', host: { '[type]': 'type', '(click)': '_stepper.next()', }, }) export class CdkStepperNext { _stepper = inject(CdkStepper); /** Type of the next button. Defaults to "submit" if not specified. */ @Input() type: string = 'submit'; } /** Button that moves to the previous step in a stepper workflow. */ @Directive({ selector: 'button[cdkStepperPrevious]', host: { '[type]': 'type', '(click)': '_stepper.previous()', }, }) export class CdkStepperPrevious { _stepper = inject(CdkStepper); /** Type of the previous button. Defaults to "button" if not specified. */ @Input() type: string = 'button'; }