Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
portal-apps-manage
Commits
06fcd6a9
Commit
06fcd6a9
authored
Sep 01, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
layout
parent
dd585d89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
angular.json
angular.json
+1
-2
dashboard-management.component.html
.../dashboard-management/dashboard-management.component.html
+6
-5
dashboard-management.component.ts
...PU/dashboard-management/dashboard-management.component.ts
+18
-0
No files found.
angular.json
View file @
06fcd6a9
...
...
@@ -60,8 +60,7 @@
"src/.htaccess"
],
"styles"
:
[
"src/styles.scss"
,
"node_modules/@fortawesome/fontawesome-free/css/all.min.css"
"src/styles.scss"
],
"scripts"
:
[
"node_modules/preline/dist/preline.js"
...
...
src/app/DPU/dashboard-management/dashboard-management.component.html
View file @
06fcd6a9
...
...
@@ -88,12 +88,12 @@
(
datasetSelected
)="
onDatasetSelected
($
event
)"
></app-dataset-picker>
<div
*
ngIf=
"dashboardData"
class=
"relative flex items-center"
>
<input
<
!-- <
input
type="text"
[(ngModel)]="dashboardData.thName"
(blur)="saveDashboardName()"
class="p-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-white text-gray-800 font-semibold"
/>
/>
-->
<button
(
click
)="
saveDashboardName
()"
class=
"ml-2 text-emerald-500 hover:text-emerald-700 focus:outline-none"
...
...
@@ -107,12 +107,12 @@
>
<i
class=
"bi bi-plus-circle-fill"
></i>
New Dashboard
</button>
<button
<
!-- <
button
(click)="addDataDrivenWidget()"
class="ti-btn ti-btn-info-full flex items-center gap-2"
>
<i class="bi bi-plus-circle-fill"></i> Add Data-Driven Widget (Test)
</button>
</button>
-->
<button
*
ngIf=
"selectedDashboardId"
(
click
)="
deleteDashboard
()"
...
...
@@ -137,11 +137,12 @@
</div>
<div
class=
"dashboard-content"
>
<ejs-dashboardlayout
[
columns
]="
6
"
#
editLayout
[
cellSpacing
]="
cellSpacing
"
[
allowResizing
]="
true
"
(
change
)="
onPanelChange
($
event
)"
>
<e-panels>
<e-panel
...
...
src/app/DPU/dashboard-management/dashboard-management.component.ts
View file @
06fcd6a9
...
...
@@ -771,4 +771,22 @@ export class DashboardManagementComponent implements OnInit {
});
});
}
onPanelChange
(
args
:
any
):
void
{
if
(
this
.
dashboardData
&&
args
.
changedPanels
)
{
args
.
changedPanels
.
forEach
((
changedPanel
:
PanelModel
)
=>
{
const
widgetIndex
=
this
.
dashboardData
!
.
widgets
.
findIndex
(
w
=>
w
.
id
===
changedPanel
.
id
);
if
(
widgetIndex
>
-
1
)
{
const
updatedWidget
=
{
...
this
.
dashboardData
!
.
widgets
[
widgetIndex
]
};
updatedWidget
.
cols
=
changedPanel
.
sizeX
!
;
updatedWidget
.
rows
=
changedPanel
.
sizeY
!
;
updatedWidget
.
x
=
changedPanel
.
col
!
;
updatedWidget
.
y
=
changedPanel
.
row
!
;
this
.
dashboardData
!
.
widgets
[
widgetIndex
]
=
updatedWidget
;
}
});
// Save the updated dashboard after all panels have been processed
this
.
dashboardDataService
.
saveDashboard
(
this
.
dashboardData
!
).
subscribe
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment