Skip to content

Commit 7fa5be9

Browse files
authored
Add files via upload
1 parent b518997 commit 7fa5be9

File tree

10 files changed

+353
-2
lines changed

10 files changed

+353
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1-
# customizing-the-angular-kanban-edit-dialog-using-templates
2-
A quick-start Angular project that shows how to customize the edit dialog in the Syncfusion Angular Kanban component using a template. This project also contains a code snippet to add a new card or modify existing card details with the editing dialog.
1+
# Getting Started with the Vue Splitter Component
2+
3+
A quick-start project that helps you create and configure the Syncfusion Vue Splitter component. This project contains code to configure a few of the control’s basic features like resizing, collapsing, and expanding panes and to render nestable panes.
4+
5+
Refer to the following documentation to learn about the Vue Splitter component:
6+
https://ej2.syncfusion.com/vue/documentation/splitter/vue3-getting-started
7+
8+
Check out this online example of the Vue Splitter component:
9+
https://ej2.syncfusion.com/vue/demos/#/material/splitter/default.html
10+
11+
## Project prerequisites
12+
Make sure that you have the compatible versions of [Visual Studio Code](https://code.visualstudio.com/download ) and [NodeJS](https://nodejs.org/en/download) or later version in your machine before starting to work on this project.
13+
14+
## How to run this application
15+
To run this application, you need to first clone the `getting-started-with-the-vue-splitter-component` repository and then open it in Visual Studio Code. Now, simply build and run your project to view the output.

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "myvueapp",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@syncfusion/ej2-vue-layouts": "^23.2.4",
13+
"@syncfusion/ej2-vue-lists": "^23.2.4",
14+
"vue": "^3.3.11"
15+
},
16+
"devDependencies": {
17+
"@vitejs/plugin-vue": "^4.5.2",
18+
"vite": "^5.0.8"
19+
}
20+
}

public/vite.svg

Lines changed: 1 addition & 0 deletions
Loading

src/App.vue

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<script>
2+
import {Splitter,SplitterComponent, PanesDirective, PaneDirective } from "@syncfusion/ej2-vue-layouts";
3+
import {ListViewComponent} from "@syncfusion/ej2-vue-lists";
4+
import { createApp } from "vue";
5+
const app = createApp();
6+
var nestedContent = app.component('nestedTemplate', {
7+
data: () => ({}),
8+
template: `<div id='vertical_splitter' class="vertical_splitter">
9+
<div class="nested">Middle content</div>
10+
<div class="nested">Nested content</div>
11+
</div>`,
12+
13+
});
14+
var listviewContent = app.component('listviewTemplate', {
15+
template: ` <div>
16+
<ejs-listview :dataSource='listData' :fields='fields' :showHeader='true'
17+
headerTitle="Folders" :showIcon="true">
18+
</ejs-listview>
19+
</div>`,
20+
21+
data: function() {
22+
return {
23+
listData : [
24+
{
25+
id: '01', text: 'Music', icon: 'folder',
26+
child: [
27+
{ id: '01-01', text: 'Gouttes.mp3', icon: 'file' }
28+
]
29+
},
30+
{
31+
id: '02', text: 'Videos', icon: 'folder',
32+
child: [
33+
{ id: '02-01', text: 'Naturals.mp4', icon: 'file' },
34+
{ id: '02-02', text: 'Wild.mpeg', icon: 'file' },
35+
]
36+
},
37+
{
38+
id: '03', text: 'Documents', icon: 'folder',
39+
child: [
40+
{ id: '03-01', text: 'Environment Pollution.docx', icon: 'file' },
41+
{ id: '03-02', text: 'Global Water, Sanitation, & Hygiene.docx', icon: 'file' },
42+
{ id: '03-03', text: 'Global Warming.ppt', icon: 'file' },
43+
{ id: '03-04', text: 'Social Network.pdf', icon: 'file' },
44+
{ id: '03-05', text: 'Youth Empowerment.pdf', icon: 'file' },
45+
]
46+
},
47+
{
48+
id: '04', text: 'Pictures', icon: 'folder',
49+
child: [
50+
{
51+
id: '04-01', text: 'Camera Roll', icon: 'folder',
52+
child: [
53+
{ id: '04-01-01', text: 'WIN_20160726_094117.JPG', icon: 'file' },
54+
{ id: '04-01-02', text: 'WIN_20160726_094118.JPG', icon: 'file' },
55+
{ id: '04-01-03', text: 'WIN_20160726_094119.JPG', icon: 'file' }
56+
]
57+
},
58+
{
59+
id: '04-02', text: 'Wind.jpg', icon: 'file'
60+
},
61+
{
62+
id: '04-02', text: 'Stone.jpg', icon: 'file'
63+
},
64+
{
65+
id: '04-02', text: 'Home.jpg', icon: 'file'
66+
},
67+
{
68+
id: '04-02', text: 'Bridge.png', icon: 'file'
69+
}
70+
]
71+
},
72+
{
73+
id: '05', text: 'Downloads', icon: 'folder',
74+
child: [
75+
{ id: '05-01', text: 'UI-Guide.pdf', icon: 'file' },
76+
{ id: '05-02', text: 'Tutorials.zip', icon: 'file' },
77+
{ id: '05-03', text: 'Game.exe', icon: 'file' },
78+
{ id: '05-04', text: 'TypeScript.7z', icon: 'file' },
79+
]
80+
},
81+
],
82+
fields: {iconCss: "icon" },
83+
84+
};
85+
},
86+
components: {
87+
'ejs-listview': ListViewComponent
88+
}
89+
});
90+
91+
export default {
92+
93+
components: {
94+
'ejs-splitter' : SplitterComponent,
95+
'e-panes': PanesDirective,
96+
'e-pane': PaneDirective,
97+
98+
},
99+
data() {
100+
return {
101+
firstContent: `<div>
102+
<h2>Data Grid</h2>
103+
The ASP.NET DataGrid control, or DataTable is a feature-rich control used to display data in a tabular format.
104+
</div>`,
105+
listviewTemplate: function() {
106+
return { template: listviewContent };
107+
},
108+
nestedTemplate: function (){
109+
return { template: nestedContent }
110+
}
111+
};
112+
},
113+
methods: {
114+
onCreate: function () {
115+
this.splitterObj = new Splitter({
116+
orientation: 'Vertical'
117+
});
118+
this.splitterObj.appendTo('#vertical_splitter');
119+
}},
120+
121+
122+
}
123+
</script>
124+
<template>
125+
126+
<ejs-splitter ref='splitterObj' width='600px' height='250px' :created='onCreate' >
127+
<e-panes>
128+
<e-pane size="25%" :content='firstContent' :collapsible='true' :resizable ='false'></e-pane>
129+
<e-pane size="15%" :content ='nestedTemplate' :collapsed='false' :collapsible='true'></e-pane>
130+
<e-pane :content='listviewTemplate' :collapsible='true' ></e-pane>
131+
</e-panes>
132+
</ejs-splitter>
133+
134+
</template>
135+
136+
<style>
137+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
138+
@import '../node_modules/@syncfusion/ej2-vue-layouts/styles/material.css';
139+
@import '../node_modules/@syncfusion/ej2-vue-lists/styles/material.css';
140+
.e-listview .e-list-icon {
141+
height: 24px;
142+
width: 30px;
143+
}
144+
.folder {
145+
background-repeat: no-repeat;
146+
background-image: url('https://ej2.syncfusion.com/react/demos/src/listview/images/file_icons.png');
147+
background-position: -5px -466px;
148+
background-size: 302%;
149+
}
150+
.file {
151+
background-repeat: no-repeat;
152+
background-image: url('https://ej2.syncfusion.com/react/demos/src/listview/images/file_icons.png');
153+
background-position: -5px -151px;
154+
background-size: 302%;
155+
}
156+
157+
.nested {
158+
padding: 5px;
159+
}
160+
161+
.vertical_splitter.e-splitter.e-splitter-vertical {
162+
border: none;
163+
}
164+
165+
</style>

src/assets/vue.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/HelloWorld.vue

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<script setup>
2+
import { ref } from 'vue'
3+
4+
defineProps({
5+
msg: String,
6+
})
7+
8+
const count = ref(0)
9+
</script>
10+
11+
<template>
12+
<h1>{{ msg }}</h1>
13+
14+
<div class="card">
15+
<button type="button" @click="count++">count is {{ count }}</button>
16+
<p>
17+
Edit
18+
<code>components/HelloWorld.vue</code> to test HMR
19+
</p>
20+
</div>
21+
22+
<p>
23+
Check out
24+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
25+
>create-vue</a
26+
>, the official Vue + Vite starter
27+
</p>
28+
<p>
29+
Install
30+
<a href="https://github.com/vuejs/language-tools" target="_blank">Volar</a>
31+
in your IDE for a better DX
32+
</p>
33+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
34+
</template>
35+
36+
<style scoped>
37+
.read-the-docs {
38+
color: #888;
39+
}
40+
</style>

src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createApp } from 'vue'
2+
import './style.css'
3+
import App from './App.vue'
4+
import {registerLicense} from '@syncfusion/ej2-base';
5+
registerLicense("Ngo9BigBOggjHTQxAR8/V1NHaF1cWWhIYVJ1WmFZfVpgcF9GYFZQQmYuP1ZhSXxQd0dhUX9ecnBQRGNbWE0=");
6+
7+
createApp(App).mount('#app')

src/style.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
:root {
2+
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3+
line-height: 1.5;
4+
font-weight: 400;
5+
6+
color-scheme: light dark;
7+
color: rgba(255, 255, 255, 0.87);
8+
background-color: #242424;
9+
10+
font-synthesis: none;
11+
text-rendering: optimizeLegibility;
12+
-webkit-font-smoothing: antialiased;
13+
-moz-osx-font-smoothing: grayscale;
14+
}
15+
16+
a {
17+
font-weight: 500;
18+
color: #646cff;
19+
text-decoration: inherit;
20+
}
21+
a:hover {
22+
color: #535bf2;
23+
}
24+
25+
body {
26+
margin: 0;
27+
display: flex;
28+
place-items: center;
29+
min-width: 320px;
30+
min-height: 100vh;
31+
}
32+
33+
h1 {
34+
font-size: 3.2em;
35+
line-height: 1.1;
36+
}
37+
38+
button {
39+
border-radius: 8px;
40+
border: 1px solid transparent;
41+
padding: 0.6em 1.2em;
42+
font-size: 1em;
43+
font-weight: 500;
44+
font-family: inherit;
45+
background-color: #1a1a1a;
46+
cursor: pointer;
47+
transition: border-color 0.25s;
48+
}
49+
button:hover {
50+
border-color: #646cff;
51+
}
52+
button:focus,
53+
button:focus-visible {
54+
outline: 4px auto -webkit-focus-ring-color;
55+
}
56+
57+
.card {
58+
padding: 2em;
59+
}
60+
61+
#app {
62+
max-width: 1280px;
63+
margin: 0 auto;
64+
padding: 2rem;
65+
text-align: center;
66+
}
67+
68+
@media (prefers-color-scheme: light) {
69+
:root {
70+
color: #213547;
71+
background-color: #ffffff;
72+
}
73+
a:hover {
74+
color: #747bff;
75+
}
76+
button {
77+
background-color: #f9f9f9;
78+
}
79+
}

vite.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from 'vite'
2+
import vue from '@vitejs/plugin-vue'
3+
4+
// https://vitejs.dev/config/
5+
export default defineConfig({
6+
plugins: [vue()],
7+
resolve: {
8+
alias: {
9+
'vue': 'vue/dist/vue.esm-bundler.js',
10+
},
11+
},
12+
})

0 commit comments

Comments
 (0)