Commit c41c4e55 by Ooh-Ao

parent 1a7c08a5
...@@ -138,9 +138,11 @@ ...@@ -138,9 +138,11 @@
<div class="dashboard-content"> <div class="dashboard-content">
<ejs-dashboardlayout <ejs-dashboardlayout
id="dashboard_default"
[columns]="6" [columns]="6"
#editLayout
[cellSpacing]="cellSpacing" [cellSpacing]="cellSpacing"
[panels]="panels"
#editLayout
[allowResizing]="true" [allowResizing]="true"
(change)="onPanelChange($event)" (change)="onPanelChange($event)"
> >
...@@ -154,9 +156,7 @@ ...@@ -154,9 +156,7 @@
[col]="panel.col" [col]="panel.col"
> >
<ng-template #header> <ng-template #header>
<div <div class="e-panel-header flex justify-between items-center">
class="p-2 bg-white border-b border-gray-200 text-gray-700 font-semibold flex justify-between items-center"
>
<span>{{ panel.header }}</span> <span>{{ panel.header }}</span>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<button <button
......
...@@ -112,3 +112,19 @@ ...@@ -112,3 +112,19 @@
background-color: #4b5563; background-color: #4b5563;
} }
} }
.control-section {
margin: 0 auto;
width: 500px;
}
#defaultLayout {
padding: 10px;
}
#dashboard_default .e-panel .e-panel-container .content {
vertical-align: middle;
font-weight: 600;
font-size: 20px;
text-align: center;
line-height: 90px;
}
...@@ -104,7 +104,7 @@ export class DashboardManagementComponent implements OnInit { ...@@ -104,7 +104,7 @@ export class DashboardManagementComponent implements OnInit {
public panels: DashboardPanel[] = []; public panels: DashboardPanel[] = [];
public cellSpacing: number[] = [10, 10]; public cellSpacing: number[] = [10, 10];
public mediaQuery: string = 'max-width: 700px';
public availableWidgets: WidgetModel[] = []; public availableWidgets: WidgetModel[] = [];
public filteredAvailableWidgets: WidgetModel[] = []; public filteredAvailableWidgets: WidgetModel[] = [];
public widgetSearchTerm: string = ''; public widgetSearchTerm: string = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment