fix(core): update
This commit is contained in:
parent
e9374900a0
commit
b84e2c4774
@ -16,6 +16,11 @@ export class DeesFormSubmit extends DeesElement {
|
|||||||
})
|
})
|
||||||
public disabled = false;
|
public disabled = false;
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: String
|
||||||
|
})
|
||||||
|
public text: string;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -23,7 +28,7 @@ export class DeesFormSubmit extends DeesElement {
|
|||||||
public static styles = [cssManager.defaultStyles, css``];
|
public static styles = [cssManager.defaultStyles, css``];
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
return html`<dees-button @click="${this.submit}" .disabled="${this.disabled}">${this.textContent}</dees-button> `;
|
return html`<dees-button @click="${this.submit}" .disabled="${this.disabled}">${this.text ? this.text : this.textContent}</dees-button> `;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async submit() {
|
public async submit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user