Repository navigation
Expand file tree
/
Copy pathtemplate.js
More file actions
54 lines (50 loc) · 1.57 KB
/
Copy pathtemplate.js
File metadata and controls
54 lines (50 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Menu Template sample
*/
this.default = function() {
// Template datasource
var data = [
{
category: 'Products',
options: [
{ value: 'JavaScript', url: 'javascript' },
{ value: 'Angular', url: 'angular' },
{ value: 'ASP.NET Core', url: 'core' },
{ value: 'ASP.NET MVC', url: 'mvc' }
]
},
{
category: 'Services',
options: [
{ value: 'Application Development', count: '1200+' },
{ value: 'Maintenance & Support', count: '3700+' },
{ value: 'Quality Assurance' },
{ value: 'Cloud Integration', count: '900+' }
]
},
{
category: 'About Us',
options: [
{
id: 'about',
about: {
value: "We are on a mission to provide world-class best software solutions for web, mobile and desktop platforms. Around 900+ applications are desgined and delivered to our customers to make digital & strengthen their businesses."
}
}
]
},
{ category: 'Careers' },
{ category: 'Sign In' },
];
// Menu model definition
var menuOptions = {
items: data,
fields: {
text: ['category', 'value'],
children: ['options']
},
template: '#menuTemplate'
};
// Menu initialization
new ej.navigations.Menu(menuOptions, '#menu');
};