forked from jquery-ui-bootstrap/jquery-ui-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extra.html
executable file
·439 lines (423 loc) · 17.6 KB
/
extra.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Download jQuery UI Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A preview of the jQuery UI Bootstrap theme.">
<meta name="author" content="Addy Osmani">
<!-- Le styles -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="css/custom-theme/jquery-ui-1.10.3.custom.css">
<!--<link rel="stylesheet" href="css/custom-theme/jquery-ui-1.10.3.theme.css">-->
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css">
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/custom-theme/jquery.ui.1.10.3.ie.css">
<![endif]-->
<link rel="stylesheet" href="assets/css/docs.css">
<link rel="stylesheet" href="assets/js/google-code-prettify/prettify.css">
<!--begin wijmo menu-->
<link href="third-party/wijmo/jquery.wijmo-open.1.5.0.css" rel="stylesheet" type="text/css" />
<!--End wijmo menu-->
<!--begin file input-->
<link href="third-party/jQuery-UI-FileInput/css/enhanced.css" rel="Stylesheet">
<!--End file input-->
<!-- jqGrid-->
<link rel="stylesheet" href="third-party/jqGrid/jqGrid/css/ui.jqgrid.css" />
<link rel="stylesheet" href="third-party/jqGrid/jqGrid.overrides.css">
<!-- end jqGrid -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="assets/js/vendor/html5shiv.js" type="text/javascript"></script>
<script src="assets/js/vendor/respond.min.js" type="text/javascript"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="assets/ico/favicon.png">
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" data-twttr-rendered="true">
<!-- Navbar
================================================== -->
<header class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://github.com/addyosmani/jquery-ui-bootstrap">jQuery UI Bootstrap</a>
</div>
<nav class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="./index.html">Home</a>
</li>
<li>
<a href="./components.html">Components</a>
</li>
<li class="active">
<a href="./extra.html">Extra</a>
</li>
<li>
<a href="./map.html">Map</a>
</li>
<li>
<a href="http://github.com/addyosmani/jquery-ui-bootstrap/issues">Feedback/Issues</a>
</li>
<li>
<a href="http://twitter.com/addyosmani">Contact</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Switch Theme <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="./index.html">Default Bootstrap Theme (Non LESS'd)</a></li>
<li><a href="theme/united/index.html">United Theme via Bootswatch (LESS'd)</a></li>
<li><a href="theme/base/index.html">Default Bootstrap Theme (LESS'd)</a></li>
</ul>
</li>
</ul>
<div id="twitter-share" class="navbar-right">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://addyosmani.github.com/jquery-ui-bootstrap/" data-text="A new jQuery UI Bootstrap theme" data-via="addyosmani" data-size="large">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</nav>
</div>
</header>
<!-- Subhead
================================================== -->
<header class="bs-header" id="overview">
<div class="container">
<h1>jQuery UI Bootstrap</h1>
<p class="lead">A Bootstrap-themed kickstart for jQuery UI widgets (v1.0 alpha).</p>
</div>
</header>
<div class="container" id="layout">
<!-- Docs nav ================================================== -->
<div class="row">
<div class="col-lg-3 col-sm-3" id="sidebar">
<div class="bs-sidebar hidden-print" role="complementary">
<ul class="nav bs-sidenav">
<li><a href="#wijmo"><i class="icon-chevron-right"></i> Wijmo</a></li>
<li><a href="#file-input"><i class="icon-chevron-right"></i> File input</a></li>
<li><a href="#date-range"><i class="icon-chevron-right"></i> Date Range</a></li>
<li><a href="#jqgrid"><i class="icon-chevron-right"></i> jqGrid</a></li>
<li><a href="#font-awesome"><i class="icon-chevron-right"></i> Font Awesome</a></li>
</ul>
</div>
</div>
<div class="col-lg-9 col-sm-9" id="article">
<!-- Wijmo ================================================== -->
<section id="wijmo">
<div class="page-header">
<h1>Wijmo</h1>
</div>
<p>
This is an example of how to retheme one of the Wijmo jQuery UI components to match the Bootstrap theme. Whilst a menu component will be arriving to jQueryUI soon, you can find the menu in <a href="http://wijmo.com/widgets/wijmo-open/">Wijmo Open</a>.
</p>
<div id="wijmo-container" class="container">
<ul id="menu1">
<li>
<h3>
<a href="">Project Name</a></h3>
</li>
<li><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Dropdown</a>
<ul>
<li><a href="#">Secondary link</a> </li>
<li><a href="#">Something else here</a> </li>
<li></li>
<li><a href="#">Another link</a> </li>
</ul>
</li>
<li>
<input type="text" placeholder="Search">
</li>
</ul>
<!-- End demo markup -->
</div>
<div class="clearfix"></div>
<pre class="prettyprint linenums">
$("#menu1").wijmenu({
trigger: ".wijmo-wijmenu-item",
triggerEvent: "click"
});
</pre>
</section>
<!-- File input -->
<section id="file-input">
<div class="page-header">
<h1>File Input</h1>
</div>
<div class="container">
<form>
<div class="form-group">
<input type="file" name="file" id="file">
</div>
</form>
</div>
<pre class="prettyprint linenums">
$('#file').customFileInput({
button_position : 'right'
});
</pre>
</section>
<!-- end file input -->
<!-- Date Range input -->
<section id="date-range">
<div class="page-header">
<h1>Select a Date Range with datepicker</h1>
</div>
<p>
<input type="text" value="01/01/2013" id="rangeBa" />
<input type="text" value="02/06/2013" id="rangeBb" />
</p>
<pre class="prettyprint linenums">
// Select a Date Range with datepicker
$( "#rangeBa" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
onClose: function( selectedDate ) {
$( "#rangeBb" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#rangeBb" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
onClose: function( selectedDate ) {
$( "#rangeBa" ).datepicker( "option", "maxDate", selectedDate );
}
});
</pre>
</section>
<!-- end Date Range -->
<section id="jqgrid">
<div class="page-header">
<h1>jqGrid</h1>
</div>
<h3>Table with jqGrid</h3>
<div class="row">
<div class="col-lg-12 col-sm-12">
<table id="jqGrid01"></table>
<div id="jqGridPager01"></div>
</div>
</div>
<p> </p>
<pre class="prettyprint linenums">
// ############ jqGrid Table
$("#jqGrid01").jqGrid({
data: mydata,
datatype: "local",
height: 250,
rowNum: 10,
rowList: [10,20,30],
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:60, sorttype:"int",search:true},
{name:'invdate',index:'invdate', width:90, sorttype:"date", formatter:"date"},
{name:'name',index:'name', width:100},
{name:'amount',index:'amount', width:80, align:"right",sorttype:"float", formatter:"number"},
{name:'tax',index:'tax', width:80, align:"right",sorttype:"float"},
{name:'total',index:'total', width:80,align:"right",sorttype:"float"},
{name:'note',index:'note', width:150, sortable:false}
],
pager: "#jqGridPager01",
viewrecords: true,
caption: "Sample jqGrid Table",
hidegrid:false,
altRows: true
});
$("#jqGrid01")
.jqGrid('filterToolbar',{defaultSearch:true,stringResult:true})
.jqGrid('setSelection', '3');
</pre>
<p> </p>
</section>
<!-- File input -->
<section id="font-awesome">
<div class="page-header">
<h1>Font Awesome</h1>
</div>
<h3>Toolbar with Font Awesome</h3>
<form class="clearfix">
<div id="toolbar-fa" class="ui-toolbar ui-widget-header ui-corner-all">
<button id="play-fa">Play</button>
<button id="stop-fa">Stop</button>
<button id="prev-fa">Prev</button>
<button id="next-fa">Next</button>
<input type="checkbox" id="shuffle-fa"><label for="shuffle-fa">Shuffle</label>
<span id="repeat-fa">
<input type="radio" id="repeat0-fa" name="repeat" checked="checked"><label for="repeat0-fa">No Repeat</label>
<input type="radio" id="repeat1-fa" name="repeat"><label for="repeat1-fa">Once</label>
<input type="radio" id="repeatall-fa" name="repeat"><label for="repeatall-fa">All</label>
</span>
</div>
</form>
<pre class="prettyprint linenums">
//####### Toolbar with Font Awesome
$("#play-fa").button({
text: false,
icons: {
primary: "icon-play"
}
});
$("#stop-fa").button({
text: false,
icons: {
primary: "icon-stop"
}
});
$("#prev-fa").button({
text: false,
icons: {
primary: "icon-fast-backward"
}
});
$("#next-fa").button({
text: false,
icons: {
primary: "icon-fast-forward"
}
});
$("#shuffle-fa").button();
$("#repeat-fa").buttonset();
</pre>
<h3>Buttons with icons (Font Awesome)</h3>
<p>
<button id="button-with-icon-fa">Button with icon only</button>
<button id="button-with-icon2-fa" class="ui-button-warning">Button with icon only</button>
<button id="button-with-icon3-fa" class="ui-button-danger">Button with icon only</button>
</p>
<pre class="prettyprint linenums">
// ############ Button with icon (Font Awesome)
$("#button-with-icon-fa" ).button({
icons: {
primary: "icon-lock"
},
text: false
});
$("#button-with-icon2-fa" ).button({
icons: {
primary: "icon-play"
},
text: false
});
$("#button-with-icon3-fa" ).button({
icons: {
primary: "icon-stop"
},
text: false
});
</pre>
<h3>Split Button (Font Awesome)</h3>
<div id="split-button-fa" class="clearfix">
<div>
<button id="rerun-fa">Run last action</button>
<button id="select-fa">Select an action</button>
</div>
<ul>
<li><a href="#">Open...</a></li>
<li><a href="#">Save</a></li>
<li><a href="#">Delete</a></li>
</ul>
</div>
<pre class="prettyprint linenums">
// Split Button
$( "#rerun-fa" )
.button()
.click(function() {
alert( "Running the last action" );
})
.next()
.button({
text: false,
icons: {
primary: "ui-icon-triangle-1-s"
}
})
.click(function() {
var menu = $( this ).parent().next().show().position({
my: "left top",
at: "left bottom",
of: this
});
$( document ).one( "click", function() {
menu.hide();
});
return false;
}).parent()
.buttonset()
.next()
.hide()
.menu();
</pre>
</section>
<!-- end button with icon -->
</div>
</div>
</div>
<!-- Footer
================================================== -->
<footer class="bs-footer">
<div class="container">
<div class="row">
<div class="col-lg-3 col-sm-3">
<h3><span class="icon-envelope"></span> Contact</h3>
<ul class="icons">
<li><i class="icon-link"></i> Blog: <a class="targetblank" href="http://addyosmani.com/blog/">Addy Osmani</a></li>
<li><i class="icon-twitter"></i> Twitter: <a class="targetblank" href="https://twitter.com/addyosmani">@addyosmani</a></li>
<li><i class="icon-github"></i> Github: <a class="targetblank" href="https://github.com/addyosmani/jquery-ui-bootstrap/issues?state=open">Issues</a></li>
</ul>
</div>
<div class="col-lg-4 col-sm-4">
<h3><span class="icon-group"></span> Team</h3>
<ul class="list-unstyled">
<li>Lead Product Developer : <a class="targetblank" href="http://addyosmani.com/blog/" hreflang="en">Addy Osmani</a></li>
<li>Chief Maintainer : <a class="targetblank" href="http://blog.aurelien-gerits.be" hreflang="fr">Aurélien Gérits</a></li>
</ul>
</div>
<div class="col-lg-5 col-sm-5">
<h3><span class="icon-lightbulb"></span> Credits</h3>
<ul class="list-unstyled">
<li>jQuery UI Bootstrap © <strong class="text-info">Addy Osmani</strong> 2012 - 2013.</li>
<li>Bootstrap © <strong class="text-info">Twitter, Inc.</strong> 2012 - 2013</li>
</ul>
</div>
</div>
</div>
</footer>
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/vendor/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="assets/js/vendor/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="assets/js/vendor/bootstrap.js" type="text/javascript"></script>
<script src="assets/js/vendor/holder.js" type="text/javascript"></script>
<script src="assets/js/vendor/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="assets/js/google-code-prettify/prettify.js" type="text/javascript"></script>
<script src="assets/js/docs.js" type="text/javascript"></script>
<!-- FileInput -->
<script src="third-party/jQuery-UI-FileInput/js/enhance.min.js" type="text/javascript"></script>
<script src="third-party/jQuery-UI-FileInput/js/fileinput.jquery.js" type="text/javascript"></script>
<!-- End FileInput -->
<!--wijmo-->
<script src="third-party/wijmo/jquery.mousewheel.min.js" type="text/javascript"></script>
<script src="third-party/wijmo/jquery.wijmo-open.1.5.0.min.js" type="text/javascript"></script>
<!--End wijmo-->
<!--jqGrid-->
<script src="third-party/jqGrid/jqGrid/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="third-party/jqGrid/jqGrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<!--end jqGrid-->
<script src="assets/js/demo-extra.js" type="text/javascript"></script>
</body>
</html>