example.html revision 56522c45e2b30dcf6faa97eb57206b22ae89b8fd
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<html>
<head>
<title>TabList Widget Example</title>
</head>
<body class="yui3-skin-sam">
<script type="text/javascript">
YUI({
base: "/build/",
filter: "raw",
modules: {
"tablist": {
fullpath: "/build_files/tablist-debug.js",
requires: ["widget", "widget-parent", "widget-child", "node-focusmanager"]
}
}
}).use("tablist", "dump", function (Y) {
var tablist = new Y.TabList({ id: "#tabview-1", children: [
{ type: "Tab", label: "Tab One", content: "Tab one content" },
{ type: Y.Tab, label: "Tab Two", content: "Tab two content" }
] });
tablist.add({ label: "Tab Three", content: "Tab three content" });
tablist.render(Y.one("body"));
});
</script>
</body>
</html>