Skip to content

Commit

Permalink
fix guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed Jan 12, 2024
1 parent a7316d1 commit 66c0e95
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions Implementation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,22 @@ You can pass additional classes to be set on the table, e.g. to make it sortable
```
<j:jelly xmlns:j="jelly:core" xmlns:dp="/hudson/plugins/view/dashboard">
<dp:decorate-plain portlet="${it}" class="sortable"> <!-- This is to say that this is a dashboard view portlet for a table-->
<!-- you can include a separate file with the logic to display your data or you can write here directly -->
<st:include page="myportlet.jelly"/>
</dp:decorate-plain>
<dp:decorate-table portlet="${it}" class="sortable"> <!-- This is to say that this is a dashboard view portlet for a table-->
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<j:forEach var="col" items="${it.myitems}">
<tr>
<td>${col.name}</td>
<td>${col.description}</td>
</tr>
</j:forEach>
</tbody>
</dp:decorate-table>
</j:jelly>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

.dbv-portlet__title {
background-color: var(--medium-grey);
padding: 4px 10px;
padding: 5px 10px;
font-weight: bold;
display: flex;
}
Expand Down

0 comments on commit 66c0e95

Please sign in to comment.