Created
January 5, 2012 21:22
-
-
Save stlsmiths/1567375 to your computer and use it in GitHub Desktop.
YUI 3.4.1 DT bench example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>YUI 3 - DT Benchmarking 3.4.1</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/cssfonts/fonts-min.css" /> | |
<!-- <link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/datatable-base/assets/datatable-base-core.css" /> | |
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/datatable-base/assets/skins/sam//datatable-base-skin.css" /> | |
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/datatable-base/assets/skins/sam//datatable-base-skin.css" /> | |
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/datatable-base/assets/skins/sam//datatable-base.css" /> | |
--> | |
</head> | |
<body class="yui3-skin-sam"> | |
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script> | |
<script src="bench_data500.js"></script> | |
<script type="text/javascript"> | |
YUI({ | |
//Last Gallery Build of this module | |
// gallery: 'gallery-2011.12.14-21-12' | |
}).use( 'datatable-base', "console", function(Y) { | |
new Y.Console().render(); | |
var cols = [ | |
{ key: "pkey", label: "*pkey" }, | |
{ key: "pint", label: "Random Int" }, | |
{ key: "ptxt", label: "Random Text" }, | |
{ key: "pdbl", label: "Random Float" }, | |
{ key: "pdt", label: "Random Date/Time" } | |
]; | |
Y.log("instantiation", "info"); | |
var table = new Y.DataTable.Base({ | |
columnset: cols, | |
recordset: jsArray | |
}); | |
Y.log("... done instantiating", "info"); | |
table.render('#divHere'); | |
Y.log("... done rendering", "info"); | |
}); | |
</script> | |
<h2>YUI3 DT Benchmarking - 3.4.1</h2> | |
<div id="divHere"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment