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
0824e147
Commit
0824e147
authored
Sep 15, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
css
parent
573ac80d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
45 deletions
+74
-45
dashboard-viewer.component.html
...nagement/dashboard-viewer/dashboard-viewer.component.html
+72
-44
dashboard-viewer.component.scss
...nagement/dashboard-viewer/dashboard-viewer.component.scss
+0
-0
dashboard-viewer.component.ts
...management/dashboard-viewer/dashboard-viewer.component.ts
+2
-1
No files found.
src/app/portal-manage/dashboard-management/dashboard-viewer/dashboard-viewer.component.html
View file @
0824e147
<div
class=
"min-h-screen dashboard-background"
>
<!-- Enhanced Dashboard Header -->
<div
class=
"dashboard-header-container"
>
<div
class=
"header-content"
>
<div
class=
"header-flex"
>
<div
class=
"header-left"
>
<!-- Dashboard Title with Icon -->
<div
class=
"header-title-section"
>
<!-- <div class="title-icon">
<i class="bi bi-grid-3x3-gap"></i>
</div> -->
<div
class=
"title-content"
>
<h1>
{{dashboardData?.thName}}
</h1>
<!-- <p>Create and manage your dashboards</p> -->
</div>
</div>
<!-- Error Message -->
<div
*
ngIf=
"errorMessage"
class=
"error-message"
>
<div
class=
"error-message-content"
>
<i
class=
"bi bi-exclamation-triangle-fill error-icon"
></i>
<span
class=
"error-text"
>
Error:
</span>
<span
class=
"error-description"
>
{{ errorMessage }}
</span>
</div>
</div>
</div>
</div>
</div>
<!-- Dashboard Viewer Container - Clean Layout -->
<div
*
ngIf=
"dashboardData"
class=
"viewer-container-clean"
>
<!-- Dashboard Content Only -->
<div
class=
"viewer-content-clean"
>
<ejs-dashboardlayout
id=
'dashboard_viewer'
#
viewerLayout
[
cellSpacing
]="
cellSpacing
"
[
columns
]="
columns
"
[
allowResizing
]="
false
"
[
allowDragging
]="
false
"
[
allowFloating
]="
false
"
[
showGridLines
]="
false
"
class=
"dashboard-viewer-layout-clean"
>
<e-panels>
<e-panel
*
ngFor=
"let panel of panels"
[
row
]="
panel
.
row
"
[
col
]="
panel
.
col
"
[
sizeX
]="
panel
.
sizeX
"
[
sizeY
]="
panel
.
sizeY
"
[
id
]="
panel
.
id
"
class=
"widget-panel-clean"
>
<ng-template
#
header
>
<!-- No header -->
</ng-template>
<ng-template
#
content
>
<div
class=
"widget-content-clean"
>
<ng-container
[
ngComponentOutlet
]="
panel
.
componentType
"
[
ngComponentOutletInputs
]="
panel
.
componentInputs
"
></ng-container>
</div>
</ng-template>
</e-panel>
</e-panels>
</ejs-dashboardlayout>
<!-- Enhanced Dashboard Content Area -->
<div
class=
"dashboard-content-area"
>
<!-- Dashboard Content -->
<div
class=
"dashboard-content-card"
>
<div
*
ngIf=
"!panels || panels.length === 0"
class=
"empty-state"
>
<div
class=
"empty-state-icon"
>
<i
class=
"bi bi-grid-3x3-gap"
></i>
</div>
<h3
class=
"empty-state-title"
>
Empty Dashboard
</h3>
<p
class=
"empty-state-description"
>
To get started, select a dashboard from the dropdown above or create
a new one. Then, click on a widget from the sidebar on the left to
add it to this canvas.
</p>
</div>
<!-- Dashboard Layout -->
<div
*
ngIf=
"panels.length > 0"
class=
"dashboard-layout-container"
>
<ejs-dashboardlayout
id=
"dashboard_default"
[
columns
]="
columns
"
[
cellSpacing
]="
cellSpacing
"
[
panels
]="
panels
"
#
editLayout
[
allowResizing
]="
true
"
[
allowDragging
]="
true
"
class=
"dashboard-layout"
>
<e-panels>
<e-panel
*
ngFor=
"let panel of panels"
[
id
]="
panel
.
id
+
'
-
'
+
panel
.
row
+
'
-
'
+
panel
.
col
"
[
sizeX
]="
panel
.
sizeX
"
[
sizeY
]="
panel
.
sizeY
"
[
row
]="
panel
.
row
"
[
col
]="
panel
.
col
"
[
zIndex
]="
999
"
>
<ng-template
#
header
>
</ng-template>
<ng-template
#
content
>
<ng-container
[
ngComponentOutlet
]="
panel
.
componentType
"
[
ngComponentOutletInputs
]="
panel
.
componentInputs
"
></ng-container>
</ng-template>
</e-panel>
</e-panels>
</ejs-dashboardlayout>
</div>
</div>
</div>
</div>
</div>
src/app/portal-manage/dashboard-management/dashboard-viewer/dashboard-viewer.component.scss
View file @
0824e147
This diff is collapsed.
Click to expand it.
src/app/portal-manage/dashboard-management/dashboard-viewer/dashboard-viewer.component.ts
View file @
0824e147
import
{
Component
,
OnInit
,
Type
,
ChangeDetectorRef
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
Type
,
ChangeDetectorRef
,
ViewEncapsulation
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
ActivatedRoute
,
RouterModule
}
from
'@angular/router'
;
import
{
DashboardLayoutModule
,
PanelModel
}
from
'@syncfusion/ej2-angular-layouts'
;
...
...
@@ -60,6 +60,7 @@ export interface DashboardPanel extends PanelModel {
],
templateUrl
:
'./dashboard-viewer.component.html'
,
styleUrls
:
[
'./dashboard-viewer.component.scss'
],
encapsulation
:
ViewEncapsulation
.
None
})
export
class
DashboardViewerComponent
implements
OnInit
{
...
...
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