You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,46 @@ To render a field as a TextField the developer must add the [@TextField](../src/
24
24
| fieldAddonLeft | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the left side of the Text Field |
25
25
| fieldAddonRight | String |[Extend form controls](http://getbootstrap.com/components/#input-groups) by adding text on the right side of the Text Field |
26
26
27
+
The code below is an example using the TextField annotation. Feel free to try this code snipet:
@TextField(title="Github user name", fieldAddonRight="@Github.com")
46
+
privateString githubUserName;
47
+
48
+
publicStringgetMail() {
49
+
return mail;
50
+
}
51
+
52
+
publicStringgetFullName() {
53
+
return fullName;
54
+
}
55
+
56
+
publicStringgetGithubRepository() {
57
+
return githubRepository;
58
+
}
59
+
60
+
publicStringgetGithubUserName() {
61
+
return githubUserName;
62
+
}
63
+
}
64
+
65
+
```
66
+
27
67
### NumberField:
28
68
29
69
The given component can be used to fill numeric values, it can be applied to fields of type [java.lang.Number](https://docs.oracle.com/javase/7/docs/api/java/lang/Number.html) (Integer, Long, Double, Float, etc ...). The developer must use the [@Number](../src/main/java/io/asfjava/ui/core/form/Number.java) in this case.
0 commit comments