upgrading to YUI 2.6
data tables are going to need some work yet, but the other stuff seems to be working 100%
This commit is contained in:
parent
a041e93da8
commit
20f8df1291
2106 changed files with 993560 additions and 237 deletions
116
www/extras/yui/tests/paginator/example.html
Normal file
116
www/extras/yui/tests/paginator/example.html
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Paginator Test Page</title>
|
||||
<link type="text/css" rel="stylesheet" href="/assets/dpSyntaxHighlighter.css">
|
||||
<link type="text/css" rel="stylesheet" href="../../build/paginator/assets/skins/sam/paginator.css">
|
||||
<style type="text/css" class="highlight-ignore">
|
||||
h1 {
|
||||
font: normal 125%/1.4 Arial, sans-serif;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="yui-skin-sam">
|
||||
<h1>Paginator Examples</h1>
|
||||
<h2>rpp:10, tot:93</h2>
|
||||
<div id="p1"></div>
|
||||
|
||||
<h2>rpp:10, tot:3</h2>
|
||||
<div id="p2"></div>
|
||||
|
||||
<h2>rpp:10, tot:93, pageLinks: 5</h2>
|
||||
<div id="p3"></div>
|
||||
|
||||
<h2>rpp:10, tot:93, recOff: 20, template: RPP</h2>
|
||||
<div id="p4"></div>
|
||||
|
||||
<h2>rpp:10, tot:133, template: (custom)</h2>
|
||||
<div id="p5"></div>
|
||||
|
||||
<h2>rpp:10, tot:93, ui.* manual render only</h2>
|
||||
<div id="p6"></div>
|
||||
|
||||
<h2>rpp:10, tot:93, render() + ui.* manual render</h2>
|
||||
<div id="p7-1"></div>
|
||||
<div id="p7"></div>
|
||||
|
||||
<script type="text/javascript" src="../../build/yahoo-dom-event/yahoo-dom-event.js"></script>
|
||||
<script type="text/javascript" src="../../build/element/element-beta-debug.js"></script>
|
||||
<script type="text/javascript" src="../../build/paginator/paginator-debug.js"></script>
|
||||
<script type="text/javascript">
|
||||
YAHOO.util.Event.onDOMReady(function () {
|
||||
|
||||
var Paginator = YAHOO.widget.Paginator;
|
||||
|
||||
new Paginator({
|
||||
rowsPerPage :10,
|
||||
totalRecords :93,
|
||||
containers :'p1',
|
||||
updateOnChange:true // for interaction testing
|
||||
}).render();
|
||||
|
||||
new Paginator({
|
||||
rowsPerPage :10,
|
||||
totalRecords :3,
|
||||
containers :'p2',
|
||||
updateOnChange:true // for interaction testing
|
||||
}).render();
|
||||
|
||||
new Paginator({
|
||||
rowsPerPage :10,
|
||||
totalRecords :93,
|
||||
containers :'p3',
|
||||
pageLinks :5,
|
||||
updateOnChange:true // for interaction testing
|
||||
}).render();
|
||||
|
||||
new Paginator({
|
||||
rowsPerPage :10,
|
||||
totalRecords :93,
|
||||
containers :'p4',
|
||||
recordOffset :20,
|
||||
template :Paginator.TEMPLATE_ROWS_PER_PAGE,
|
||||
rowsPerPageOptions: [10,25,50],
|
||||
updateOnChange:true // for interaction testing
|
||||
}).render();
|
||||
|
||||
new Paginator({
|
||||
rowsPerPage :10,
|
||||
totalRecords :133,
|
||||
containers :'p5',
|
||||
template : "{PreviousPageLink} <strong>{CurrentPageReport}</strong> {NextPageLink}",
|
||||
updateOnChange:true // for interaction testing
|
||||
}).render();
|
||||
|
||||
var p6 = document.getElementById('p6'),
|
||||
p6_pag = new Paginator({
|
||||
rowsPerPage : 10,
|
||||
totalRecords : Paginator.VALUE_UNLIMITED,
|
||||
updateOnChange : true, // for interaction testing
|
||||
|
||||
initialPage : 5,
|
||||
pageReportTemplate : "<strong>{currentPage}</strong>",
|
||||
nextPageLinkLabel : '>'
|
||||
});
|
||||
p6.appendChild(new Paginator.ui.CurrentPageReport(p6_pag).render('p6'));
|
||||
p6.appendChild(new Paginator.ui.NextPageLink(p6_pag).render('p6'));
|
||||
|
||||
var p7 = new Paginator({
|
||||
rowsPerPage :10,
|
||||
totalRecords :93,
|
||||
containers :'p7',
|
||||
updateOnChange:true // for interaction testing
|
||||
});
|
||||
p7.subscribe('render', function () {
|
||||
document.getElementById('p7-1').appendChild(
|
||||
new Paginator.ui.CurrentPageReport(p7).render('p7'));
|
||||
});
|
||||
|
||||
p7.render();
|
||||
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="/assets/dpSyntaxHighlighter.js"></script>
|
||||
<script type="text/javascript" src="/assets/dpSyntaxHighlightExample.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue