mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Documentation
This commit is contained in:
parent
68d9c89511
commit
5047b8e6ef
@ -27,7 +27,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<nav class="navbar navbar-expand-lg bg-light">
|
<nav class="navbar navbar-expand-lg bg-light">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand fw-bold" href="#">Spring Boot Database Admin Docs</a>
|
<a class="navbar-brand fw-bold" href="#">Spring Boot Database Admin Docs <span class="text-muted">v0.1.5</span></a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
@ -53,7 +53,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-3 pt-3">
|
<div class="col-3 pt-3">
|
||||||
<ol id="toc" class="toc" style="position: fixed">
|
<ol id="toc" class="toc" style="position: sticky;">
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<code class="language-xml"><dependency>
|
<code class="language-xml"><dependency>
|
||||||
<groupId>tech.ailef</groupId>
|
<groupId>tech.ailef</groupId>
|
||||||
<artifactId>spring-boot-db-admin</artifactId>
|
<artifactId>spring-boot-db-admin</artifactId>
|
||||||
<version>0.1.2</version>
|
<version>0.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
@ -95,6 +95,9 @@ dbadmin.baseUrl=admin
|
|||||||
# accepts multiple comma separated values
|
# accepts multiple comma separated values
|
||||||
dbadmin.modelsPackage=your.models.package,your.second.models.package
|
dbadmin.modelsPackage=your.models.package,your.second.models.package
|
||||||
|
|
||||||
|
## It is required to have open-in-view set to true
|
||||||
|
# spring.jpa.open-in-view=true
|
||||||
|
|
||||||
# OPTIONAL PARAMETERS
|
# OPTIONAL PARAMETERS
|
||||||
# Whether to enable to web interface
|
# Whether to enable to web interface
|
||||||
# dbadmin.enabled=true
|
# dbadmin.enabled=true
|
||||||
@ -253,7 +256,7 @@ private byte[] image;
|
|||||||
|
|
||||||
<h4 id="hidde-column">3.1.6 @HiddenColumn</h4>
|
<h4 id="hidde-column">3.1.6 @HiddenColumn</h4>
|
||||||
<h6>Code example</h6>
|
<h6>Code example</h6>
|
||||||
<pre>
|
<pre >
|
||||||
<code>@HiddenColumn
|
<code>@HiddenColumn
|
||||||
private String cardNumber;
|
private String cardNumber;
|
||||||
</code>
|
</code>
|
||||||
@ -264,7 +267,7 @@ private String cardNumber;
|
|||||||
|
|
||||||
<h4 id="read-only">3.1.7 @ReadOnly</h4>
|
<h4 id="read-only">3.1.7 @ReadOnly</h4>
|
||||||
<h6>Code example</h6>
|
<h6>Code example</h6>
|
||||||
<pre>
|
<pre class="language-java">
|
||||||
<code>@ReadOnly
|
<code>@ReadOnly
|
||||||
private LocalDate createdAt;
|
private LocalDate createdAt;
|
||||||
</code>
|
</code>
|
||||||
@ -273,6 +276,17 @@ private LocalDate createdAt;
|
|||||||
<p>Marks a field as read-only. The field can be filled at creation time, but it will be shown as disabled during edits, making it impossible to change its value after creation. </p>
|
<p>Marks a field as read-only. The field can be filled at creation time, but it will be shown as disabled during edits, making it impossible to change its value after creation. </p>
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="disable-create">3.1.8 @DisableCreate, @DisableEdit, @DisableDelete</h4>
|
||||||
|
<h6>Code example</h6>
|
||||||
|
<pre >
|
||||||
|
<code class="language-java">@Entity
|
||||||
|
@DisableCreate
|
||||||
|
public class Product { ... }</code>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Disables the possibility of creating/editing/deleting items for the specific table.</p>
|
||||||
|
|
||||||
|
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
|
|
||||||
<h3 id="settings-panel">3.2 The Settings panel</h3>
|
<h3 id="settings-panel">3.2 The Settings panel</h3>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user