21 lines
626 B
TypeScript
21 lines
626 B
TypeScript
import {Component, input, output} from "@angular/core";
|
|
import {MatRippleModule} from "@angular/material/core";
|
|
import {MatProgressSpinnerModule} from "@angular/material/progress-spinner";
|
|
|
|
@Component({
|
|
selector: 'app-submit-button',
|
|
templateUrl: 'submit-button.component.html',
|
|
styleUrl: 'submit-button.component.scss',
|
|
imports: [
|
|
MatRippleModule,
|
|
MatProgressSpinnerModule
|
|
]
|
|
})
|
|
export class SubmitButtonComponent {
|
|
requestPending = input.required<boolean>();
|
|
label = input<string>();
|
|
disabled = input<boolean>(false);
|
|
color = input<'secondary' | undefined>('secondary');
|
|
click = output<void>();
|
|
}
|