UI for editing customizable dashboard views

This commit is contained in:
shamoon
2024-04-17 00:23:51 -07:00
parent 23a96810f7
commit 4cd9fd6832
10 changed files with 281 additions and 31 deletions

View File

@@ -0,0 +1,24 @@
<div class="d-flex flex-row mt-2 align-items-center">
<ng-container i18n>Selected</ng-container>:
<div class="ms-2 d-flex flex-row gap-2 w-100"
cdkDropList #selectedList="cdkDropList"
cdkDropListOrientation="horizontal"
(cdkDropListDropped)="drop($event)"
[cdkDropListConnectedTo]="[unselectedList]">
@for (item of selectedItems; track item.id) {
<div class="badge bg-primary" cdkDrag>{{item.name}}</div>
}
</div>
</div>
<div class="d-flex flex-row mt-2 align-items-center bg-light p-2">
<ng-container i18n></ng-container>
<div class="d-flex flex-row gap-2 w-100"
cdkDropList #unselectedList="cdkDropList"
cdkDropListOrientation="horizontal"
(cdkDropListDropped)="drop($event)"
[cdkDropListConnectedTo]="[selectedList]">
@for (item of unselectedItems; track item.id) {
<div class="badge bg-secondary opacity-50" cdkDrag>{{item.name}}</div>
}
</div>
</div>