1234567891011121314151617181920212223 |
- import { Component, Input } from '@angular/core';
- import { CommonModule } from '@angular/common';
- export interface ProgressSection {
- key: string;
- label: string;
- }
- @Component({
- selector: 'app-progress-bar',
- standalone: true,
- imports: [CommonModule],
- templateUrl: './progress-bar.component.html',
- styles: [`
- :host {
- display: block;
- }
- `]
- })
- export class ProgressBarComponent {
- @Input() sections: ProgressSection[] = [];
- @Input() getSectionStatus!: (key: string) => 'completed' | 'active' | 'pending';
- }
|