Skip to content

Commit c46d18c

Browse files
committed
Add TextField with fieldAddonRigh to demo
Add TextField with fieldAddonRigh sample
1 parent b2727cc commit c46d18c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

demo/src/main/java/io/asfjava/ui/demo/screen/DemoForm.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public class DemoForm implements Serializable {
1717
@TextField(title = "Pesonal Website",fieldAddonLeft="http://", description = "This is TextField with fieldAddonLeft")
1818
private String webSite;
1919

20+
@TextField(title = "Your Github Mail",fieldAddonRight="@github.com", description = "This is TextField with fieldAddonRight")
21+
private String gitHub;
22+
2023
// @Tab(title = "Contact", index = 2)
2124
@Password(title = "Password", placeHolder = "Please set you password", description = "This is password")
2225
private String password;
@@ -78,6 +81,14 @@ public String getEmail() {
7881
return email;
7982
}
8083

84+
public void setGitHub(String github) {
85+
this.gitHub = github;
86+
}
87+
88+
public String getGitHub() {
89+
return gitHub;
90+
}
91+
8192
public void setWebSite(String website) {
8293
this.webSite = website;
8394
}

0 commit comments

Comments
 (0)