mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-09 05:48:20 +00:00
Screenshots in docs
This commit is contained in:
parent
aa3d0451a1
commit
4d34595186
BIN
docs/docs/img/computedcolumn.png
Normal file
BIN
docs/docs/img/computedcolumn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
@ -220,19 +220,14 @@ private Double price;
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<h6>Code example</h6>
|
<h6>Code example</h6>
|
||||||
<pre>
|
<pre><code class="language-java">@ComputedColumn
|
||||||
<code class="language-java">@ComputedColumn
|
public double numberOfOrders() {
|
||||||
public double totalSpent() {
|
return orders.size();
|
||||||
double total = 0;
|
|
||||||
for (Order o : orders) {
|
|
||||||
total += o.total();
|
|
||||||
}
|
|
||||||
return total;
|
|
||||||
}
|
}
|
||||||
</code>
|
</code></pre>
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>This annotation can be used to add values computed at runtime that are shown like additional columns.</p>
|
<p>This annotation can be used to add values computed at runtime that are shown like additional columns.</p>
|
||||||
|
<a href="img/computedcolumn.png"><img class="w-100" src="img/computedcolumn.png"></a>
|
||||||
|
|
||||||
<p class="tip"><span class="title"><i class="bi bi-exclamation-triangle"></i> NOTE</span>
|
<p class="tip"><span class="title"><i class="bi bi-exclamation-triangle"></i> NOTE</span>
|
||||||
If your computed columns are computationally expensive (e.g because they use joins) they can affect the interface loading speed. In particular, the list view is the most affected, as these methods will get called for each item in the list.
|
If your computed columns are computationally expensive (e.g because they use joins) they can affect the interface loading speed. In particular, the list view is the most affected, as these methods will get called for each item in the list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user