mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Images in documentation
This commit is contained in:
parent
b55afbd2d6
commit
b03ebb7677
BIN
docs/docs/img/displayformat.png
Normal file
BIN
docs/docs/img/displayformat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
BIN
docs/docs/img/displayname.png
Normal file
BIN
docs/docs/img/displayname.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
@ -185,26 +185,23 @@ snapadmin.modelsPackage=your.models.package,your.second.models.package
|
||||
<h3 id="supported-annotations">3.1 Supported annotations</h3>
|
||||
|
||||
<h4 id="display-name">3.1.1 @DisplayName</h4>
|
||||
<pre>
|
||||
<code class="language-java">@DisplayName
|
||||
<pre><code class="language-java">@DisplayName
|
||||
public String getFullName() {
|
||||
return firstName + " " + lastName;
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
<p>When displaying a reference to an item, we show its primary key by default. If a class has a <code>@DisplayName</code>, this method will be used in addition to the primary key whenever possible, giving the user a more readable option. <p>
|
||||
<a href="img/displayname.png"><img class="w-100" src="img/displayname.png"></a>
|
||||
|
||||
|
||||
<h4 id="display-format">3.1.2 @DisplayFormat</h4>
|
||||
<pre>
|
||||
<code class="language-java">@DisplayFormat(format = "$%.2f")
|
||||
<pre><code class="language-java">@DisplayFormat(format = "$%.2f")
|
||||
private Double price;
|
||||
</code>
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
<p>Specify a format string to apply when displaying the field.</p>
|
||||
|
||||
<a href="img/displayformat.png"><img class="w-100" src="img/displayformat.png"></a>
|
||||
|
||||
<h4 id="computed-column">3.1.3 @ComputedColumn</h4>
|
||||
<h6>Supported parameters</h6>
|
||||
|
Loading…
x
Reference in New Issue
Block a user