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 spot = new Ext.ux.Spotlight({
15 var DemoPanel = Ext.extend(Ext.Panel, {
20 html: 'Some panel content goes here!',
21 bodyStyle: 'padding:10px 15px;',
24 this.buttons[0].setDisabled(!on);
29 var updateSpot = function(id){
30 if(typeof id == 'string'){
32 }else if (!id && spot.active){
41 renderTo: Ext.getBody(),
48 items: [p1 = new DemoPanel({
52 handler: updateSpot.createDelegate(this, ['panel2'])
59 handler: updateSpot.createDelegate(this, ['panel3'])
66 handler: updateSpot.createDelegate(this, [false])
74 handler: updateSpot.createDelegate(this, ['panel1'])