stepper-icon.d.ts 893 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { TemplateRef } from '@angular/core';
  9. import { StepState } from '@angular/cdk/stepper';
  10. /** Template context available to an attached `matStepperIcon`. */
  11. export interface MatStepperIconContext {
  12. /** Index of the step. */
  13. index: number;
  14. /** Whether the step is currently active. */
  15. active: boolean;
  16. /** Whether the step is optional. */
  17. optional: boolean;
  18. }
  19. /**
  20. * Template to be used to override the icons inside the step header.
  21. */
  22. export declare class MatStepperIcon {
  23. templateRef: TemplateRef<MatStepperIconContext>;
  24. /** Name of the icon to be overridden. */
  25. name: StepState;
  26. constructor(templateRef: TemplateRef<MatStepperIconContext>);
  27. }