-
Notifications
You must be signed in to change notification settings - Fork 1
/
iframe.js
46 lines (44 loc) · 816 Bytes
/
iframe.js
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
define(function (require) {
//loading bootstrap 3 and fuel 3
require('bootstrap');
require('fuelux');
//FUELUX V3 TREE INSTANTIATED
$('#myTree').tree({
folderSelect: false,
dataSource: function (parentData, callback) {
callback({
data: [
{
"name": "Ascending and Descending",
"type": "folder",
"attr": {
"id": "folder1"
}
},
{
"name": "Sky and Water I (with custom icon)",
"type": "item",
"attr": {
"id": "item1",
"data-icon": "glyphicon glyphicon-file"
}
},
{
"name": "Drawing Hands",
"type": "folder",
"attr": {
"id": "folder2"
}
},
{
"name": "Waterfall",
"type": "item",
"attr": {
"id": "item2"
}
}
]
});
}
});
});