propagate label to et2-button to show it (use label="" to show just the icon)

This commit is contained in:
ralf 2022-08-22 14:59:06 +02:00
parent 6c3df5ad8b
commit 406da0dcec

View File

@ -182,6 +182,7 @@ export class et2_file extends et2_inputWidget
this.span = jQuery(document.createElement("et2-button"))
.addClass('et2_file_span')
.attr("image", "attach")
.attr('label', this.options.label || '')
.attr("noSubmit", true)
.appendTo(this.node);
@ -768,5 +769,3 @@ export class et2_file extends et2_inputWidget
}
}
et2_register_widget(et2_file, ["file"]);