Skip to content

Commit fdab48e

Browse files
committed
Update Demo
minLenght and maxLenght support to TextField
1 parent e5ba721 commit fdab48e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ public class DemoForm implements Serializable {
2020
@TextField(title = "Your Github Mail",fieldAddonRight="@github.com", description = "This is TextField with fieldAddonRight")
2121
private String gitHub;
2222

23+
2324
// @Tab(title = "Contact", index = 2)
24-
@Password(title = "Password", placeHolder = "Please set you password", description = "This is password")
25+
@Password(title = "Password", placeHolder = "Please set you password",description = "This is password")
2526
private String password;
2627

2728
@Tab(title = "Info", index = 1)
28-
@TextField(title = "First Name", placeHolder = "Your first name", description = "This is a description for your first name field")
29+
@TextField(title = "First Name", placeHolder = "Your first name",minLenght=3,maxLenght=10, validationMessage = "The First Name must contain a minimum of 3 and a max of 10 characters ", description = "This is a description for your first name field with minLenght and maxLenght")
2930
private String firstName;
3031

3132
// @Tab(title = "Info", index = 1)

0 commit comments

Comments
 (0)