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() {
\r
9 Ext.QuickTips.init();
\r
11 // create some portlet tools using built in Ext tool ids
\r
14 handler: function(){
\r
15 Ext.Msg.alert('Message', 'The Settings tool was clicked.');
\r
19 handler: function(e, target, panel){
\r
20 panel.ownerCt.remove(panel, true);
\r
24 var viewport = new Ext.Viewport({
\r
27 xtype: 'grouptabpanel',
\r
35 iconCls: 'x-icon-tickets',
\r
36 tabTip: 'Tickets tabtip',
\r
37 style: 'padding: 10px;',
\r
38 items: [new SampleGrid([0,1,2,3,4])]
\r
43 tabTip: 'Dashboard tabtip',
\r
46 style:'padding:10px 0 10px 10px',
\r
48 title: 'Grid in a Portlet',
\r
51 items: new SampleGrid([0, 2, 3])
\r
53 title: 'Another Panel 1',
\r
55 html: Ext.example.shortBogusMarkup
\r
59 style:'padding:10px 0 10px 10px',
\r
63 html: Ext.example.shortBogusMarkup
\r
65 title: 'Another Panel 2',
\r
67 html: Ext.example.shortBogusMarkup
\r
71 style:'padding:10px',
\r
75 html: Ext.example.shortBogusMarkup
\r
77 title: 'Another Panel 3',
\r
79 html: Ext.example.shortBogusMarkup
\r
83 title: 'Subscriptions',
\r
84 iconCls: 'x-icon-subscriptions',
\r
85 tabTip: 'Subscriptions tabtip',
\r
86 style: 'padding: 10px;',
\r
92 title: 'Nested Tabs',
\r
93 html: Ext.example.shortBogusMarkup
\r
98 iconCls: 'x-icon-users',
\r
99 tabTip: 'Users tabtip',
\r
100 style: 'padding: 10px;',
\r
101 html: Ext.example.shortBogusMarkup
\r
106 title: 'Configuration',
\r
107 iconCls: 'x-icon-configuration',
\r
108 tabTip: 'Configuration tabtip',
\r
109 style: 'padding: 10px;',
\r
110 html: Ext.example.shortBogusMarkup
\r
112 title: 'Email Templates',
\r
113 iconCls: 'x-icon-templates',
\r
114 tabTip: 'Templates tabtip',
\r
115 style: 'padding: 10px;',
\r
116 html: Ext.example.shortBogusMarkup
\r