diff --git a/docs/docs/img/displayformat.png b/docs/docs/img/displayformat.png new file mode 100644 index 0000000..a142ad5 Binary files /dev/null and b/docs/docs/img/displayformat.png differ diff --git a/docs/docs/img/displayname.png b/docs/docs/img/displayname.png new file mode 100644 index 0000000..e1cacc5 Binary files /dev/null and b/docs/docs/img/displayname.png differ diff --git a/docs/docs/index.html b/docs/docs/index.html index d846192..4499af4 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -185,26 +185,23 @@ snapadmin.modelsPackage=your.models.package,your.second.models.package
-@DisplayName
+@DisplayName
public String getFullName() {
return firstName + " " + lastName;
}
-
-
+
When displaying a reference to an item, we show its primary key by default. If a class has a @DisplayName
, this method will be used in addition to the primary key whenever possible, giving the user a more readable option.
-@DisplayFormat(format = "$%.2f")
+ @DisplayFormat(format = "$%.2f")
private Double price;
-
-
+
Specify a format string to apply when displaying the field.
- +