From f42cb187854186191ebaad73b3ad0c187cbb76a6 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Mon, 6 Apr 2020 12:25:50 +0300 Subject: Allow setting Upload button caption as HTML, move data to SharedState. (#11940) Fixes #11810 --- .../main/java/com/vaadin/shared/ui/upload/UploadState.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'shared/src') diff --git a/shared/src/main/java/com/vaadin/shared/ui/upload/UploadState.java b/shared/src/main/java/com/vaadin/shared/ui/upload/UploadState.java index 217946391c..81b4bdf8c4 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/upload/UploadState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/upload/UploadState.java @@ -33,7 +33,20 @@ public class UploadState extends AbstractComponentState { primaryStyleName = "v-upload"; } + /** Upload component's list of accepted content-types. */ @DelegateToWidget @NoLayout public String acceptMimeTypes; + + /** Caption of the button that fires uploading. */ + public String buttonCaption = "Upload"; + + /** Style name of the button that fires uploading. */ + public String buttonStyleName = "v-button"; + + /** + * Should the caption of the button that fires uploading be rendered as + * HTML. + */ + public boolean buttonCaptionAsHtml; } -- cgit v1.2.3