|
|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
import { Component, Input } from "@angular/core"; |
|
|
|
|
import { Component, HostBinding, Input } from "@angular/core"; |
|
|
|
|
|
|
|
|
|
import { ButtonTypes } from "../button"; |
|
|
|
|
|
|
|
|
|
@ -10,4 +10,10 @@ export class SubmitButtonComponent {
@@ -10,4 +10,10 @@ export class SubmitButtonComponent {
|
|
|
|
|
@Input() buttonType: ButtonTypes = "primary"; |
|
|
|
|
@Input() disabled = false; |
|
|
|
|
@Input() loading: boolean; |
|
|
|
|
|
|
|
|
|
@Input() block?: boolean; |
|
|
|
|
|
|
|
|
|
@HostBinding("class") get classList() { |
|
|
|
|
return this.block == null || this.block === false ? [] : ["tw-w-full", "tw-block"]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|