3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">Ext.onReady(function(){
10 var tabs = new Ext.TabPanel({
12 resizeTabs:true, // turn on tab resizing
18 defaults: {autoScroll:true},
19 plugins: new Ext.ux.TabCloseMenu()
22 // tab generation code
29 title: 'New Tab ' + (++index),
31 html: 'Tab Body ' + (index) + '<br/><br/>'
32 + Ext.example.bogusMarkup,
41 }).render(document.body, 'tabs');