diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2020-04-06 12:25:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 12:25:50 +0300 |
commit | f42cb187854186191ebaad73b3ad0c187cbb76a6 (patch) | |
tree | 09979d30e761efe970752a6f09d5d836cdf9c911 /shared | |
parent | 240cdce985bfc08a6e2869d1de52718227706640 (diff) | |
download | vaadin-framework-f42cb187854186191ebaad73b3ad0c187cbb76a6.tar.gz vaadin-framework-f42cb187854186191ebaad73b3ad0c187cbb76a6.zip |
Allow setting Upload button caption as HTML, move data to SharedState. (#11940)
Fixes #11810
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/upload/UploadState.java | 13 |
1 files changed, 13 insertions, 0 deletions
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; } |