mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
feat(button): add disabled state input to stateful button component
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
(click)="handleButtonClick()"
|
||||
data-what="stateful-button"
|
||||
[attr.data-which]="state()"
|
||||
[disabled]="disabled()"
|
||||
>
|
||||
@switch (state()) {
|
||||
@case ('default') {
|
||||
|
||||
@@ -81,6 +81,7 @@ export class StatefulButtonComponent implements OnDestroy {
|
||||
color = input<ButtonColor>('primary');
|
||||
size = input<ButtonSize>('medium');
|
||||
pending = input<boolean>(false);
|
||||
disabled = input<boolean>(false);
|
||||
|
||||
// Output events
|
||||
clicked = output<void>();
|
||||
|
||||
Reference in New Issue
Block a user