Skip to content

Commit 5ff6055

Browse files
Add files via upload
1 parent 30bf927 commit 5ff6055

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

src/App.vue

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
1+
<script>
2+
import { DashboardLayoutComponent, PanelsDirective, PanelDirective } from '@syncfusion/ej2-vue-layouts';
3+
4+
export default {
5+
components: {
6+
'ejs-dashboardlayout' : DashboardLayoutComponent,
7+
'e-panels' : PanelsDirective,
8+
'e-panel' : PanelDirective
9+
}
10+
}
11+
</script>
12+
113
<template>
2-
<ejs-dashboardlayout columns="3" :allowResizing="true" >
14+
<ejs-dashboardlayout columns="3" :allowDragging="false" :allowResizing="true">
315
<e-panels>
4-
<e-panel :row="0" :col="0" header="<div>Panel 1</div>" ></e-panel>
5-
<!-- <e-panel :row="0" :col="1" header="<div>Panel 2</div>" content="<div>content of panel 2</div>" ></e-panel>
6-
<e-panel :row="0" :col="2" header="<div>Panel 3</div>" content="<div>content of panel 3</div>" ></e-panel> -->
7-
<e-panel :row="10" :col="0" header="<div>Panel 2</div>" ></e-panel>
8-
</e-panels>
16+
<e-panel :row="0" :col="0" :sizeY="2" :minSizeY="1" :maxSizeY="2" header="<div>Panel 1</div>" content="<div>Content of Panel 1</div>"></e-panel>
17+
<e-panel :row="0" :col="1" header="<div>Panel 2</div>" content="<div>Content of Panel 2</div>"></e-panel>
18+
<e-panel :col="2" header="<div>Panel 3</div>" content="<div>Content of Panel 3</div>"></e-panel>
19+
<e-panel :row="1" :col="1" :sizeX="2" :minSizeX="1" :maxSizeX="2" header="<div>Panel 4</div>" content="<div>Content of Panel 4</div>"></e-panel>
20+
</e-panels>
921
</ejs-dashboardlayout>
1022
</template>
1123

12-
<script setup>
13-
import { DashboardLayoutComponent as EjsDashboardlayout, PanelDirective as EPanel, PanelsDirective as EPanels } from "@syncfusion/ej2-vue-layouts";
14-
</script>
15-
1624
<style>
1725
@import "../node_modules/@syncfusion/ej2-base/styles/material.css";
1826
@import "../node_modules/@syncfusion/ej2-vue-layouts/styles/material.css";
1927
2028
.e-panel-header {
21-
text-align: center;
29+
text-align: center;
2230
}
2331
.e-panel-content {
24-
text-align: center;
32+
text-align: center;
2533
}
26-
</style>
34+
</style>

0 commit comments

Comments
 (0)