2 * Ext JS Library 2.2.1
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
9 Ext.onReady(function(){
\r
11 // NOTE: This is an example showing simple state management. During development,
\r
12 // it is generally best to disable state management as dynamically-generated ids
\r
13 // can change across page loads, leading to unpredictable results. The developer
\r
14 // should ensure that stable state ids are set for stateful components in real apps.
\r
15 Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
\r
17 // create some portlet tools using built in Ext tool ids
\r
20 handler: function(){
\r
21 Ext.Msg.alert('Message', 'The Settings tool was clicked.');
\r
25 handler: function(e, target, panel){
\r
26 panel.ownerCt.remove(panel, true);
\r
30 var viewport = new Ext.Viewport({
\r
42 cmargins:'35 5 5 5',
\r
48 html: Ext.example.shortBogusMarkup,
\r
55 html: Ext.example.shortBogusMarkup,
\r
66 style:'padding:10px 0 10px 10px',
\r
68 title: 'Grid in a Portlet',
\r
71 items: new SampleGrid([0, 2, 3])
\r
73 title: 'Another Panel 1',
\r
75 html: Ext.example.shortBogusMarkup
\r
79 style:'padding:10px 0 10px 10px',
\r
83 html: Ext.example.shortBogusMarkup
\r
85 title: 'Another Panel 2',
\r
87 html: Ext.example.shortBogusMarkup
\r
91 style:'padding:10px',
\r
95 html: Ext.example.shortBogusMarkup
\r
97 title: 'Another Panel 3',
\r
99 html: Ext.example.shortBogusMarkup
\r
104 * Uncomment this block to test handling of the drop event. You could use this
\r
105 * to save portlet position state for example. The event arg e is the custom
\r
106 * event defined in Ext.ux.Portal.DropZone.
\r
109 // 'drop': function(e){
\r
110 // Ext.Msg.alert('Portlet Dropped', e.panel.title + '<br />Column: ' +
\r
111 // e.columnIndex + '<br />Position: ' + e.position);
\r