forked from dwaltz/fuelux2-3-exploration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstructor.html
132 lines (119 loc) · 4.47 KB
/
constructor.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en" class="fuelux">
<head>
<meta charset="utf-8">
<title>Fuel UX 3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="bower_components/fuelux/dist/css/fuelux.css" rel="stylesheet" type="text/css">
<!-- allows for visual check of compiled LESS for debugging/testing purposes. Uncomment this, and comment out client-side LESS compilation code below to use this -->
<!--<link href="dist/css/fuelux.css" rel="stylesheet" type="text/css">-->
<!--<link href="dist/css/fuelux.min.css" rel="stylesheet" type="text/css">-->
<link href="index.css" rel="stylesheet" type="text/css">
<script src="bower_components/requirejs/require.js"></script>
<script type="text/javascript">
(function () {
requirejs.config({
config: {
moment: {
noGlobal: true
}
},
paths: {
jquery: 'bower_components/jquery/jquery',
underscore: 'bower_components/underscore/underscore',
bootstrap: 'bower_components/bootstrap-2.3.2/js',
moment: 'bower_components/moment/moment',
fuelux: 'bower_components/fuelux/dist/js/fuelux',
fuelux2: 'bower_components/fuelux-2.6.4/dist/',
fuelux3tree: 'bower_components/tree/index'
},
shim: {
'fuelux2': {
deps: ['jquery']
}
}
});
})();
require(['constructor'], function($){ });
</script>
</head>
<body>
<header class="navbar navbar-default navbar-static-top" id="top" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./index.html" class="navbar-brand">FuelUX 2&3</a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a href="./noConflict.html">No Conflict</a>
</li>
<li>
<a href="./constructor.html">Constructor Modification</a>
</li>
<li>
<a href="./iframe.html">Isolation</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="container">
<div class="col-md-9">
<h2 style="margin-top:10px;">Constructor Modification:</h2>
<p>Fuel UX 3 controls can be packaged so they avoid the Fuel UX V2 <code>$.fn.controlName</code> namespace. Fuel 3 controls can then be loaded in the context of a JavaScript module with require.js.</p>
<a href="./constructor.js">View Code Here!</a></br>
<a href="https://github.com/dwaltz/fuelux/blob/prototype-hack/js/tree.js">View Modified Control Code Here!</a>
<h4>Fuel UX 3 tree</h4>
<!-- FUELUX V3 TREE -->
<ul class="tree tree-folder-select" role="tree" id="myTree" style="width: 400px;height: 300px; margin: 20px;">
<li class="tree-branch hide" data-template="treebranch" role="treeitem" aria-expanded="false">
<div class="tree-branch-header">
<button class="glyphicon icon-caret glyphicon-play"><span class="sr-only">Open</span></button>
<button class="tree-branch-name">
<span class="glyphicon icon-folder glyphicon-folder-close"></span>
<span class="tree-label"></span>
</button>
</div>
<ul class="tree-branch-children" role="group"></ul>
<div class="tree-loader" role="alert">Loading...</div>
</li>
<li class="tree-item hide" data-template="treeitem" role="treeitem">
<button class="tree-item-name">
<span class="glyphicon icon-item fueluxicon-bullet"></span>
<span class="tree-label"></span>
</button>
</li>
</ul>
<h4>Fuel UX 2 tree (Styles not yet corrected)</h4>
<!-- FUELUX V2 TREE -->
<div id="ex-tree" class="tree" style="width: 400px;height: 300px; margin: 20px;">
<div class="tree-folder" style="display:none;">
<div class="tree-folder-header">
<i class="icon-folder-close"></i>
<div class="tree-folder-name"></div>
</div>
<div class="tree-folder-content"></div>
<div class="tree-loader" style="display:none">
</div>
</div>
<div class="tree-item" style="display:none;">
<i class="tree-dot"></i>
<div class="tree-item-name"></div>
</div>
</div>
</div>
</div>
<footer>
<div class="container">
<p>Created as a POC for furthering adoption of the latest version of Fuel UX</p>
</div>
</footer>
</body>